Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    try
    try is offline
    Banned
    Join Date
    Jul 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How do I get a MySQL database

    I need a MySql database for my website. I have been unsuccessful in any attempt to log in to MySql via telnet and my e-mail messages to support have gone unanswered. How do I get a database established?
    _________________
    Austin tx apartments discount perfume

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Usually web hosts have a control panel that gives you some kind of tool to manage your databases. Have you checked to see if you have such tool? If you don't then you may want to look into PHPMyAdmin.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    do you have mysql on your host? did you create a database, and a table and connect to the database correctly?
    PHP Code:
    <?php
    $host 
    "yourhost:port";
    $user "userfordb";
    $pass "passfordb";
    $db "dbname";
    $con mysql_connect($host$user$pass);
    mysql_select_db($db$con) or die(mysql_error());
    echo 
    "connected to database";
    mysql_querySOME QUERY) or die(mysql_error());
    ?>
    there a numerous tutorials out there check them out,
    if you need a host with mysql freehostia.com offers a good service, although lately they have been down a bit. hopefully they sort their problems out though


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •