Closed Thread
Results 1 to 4 of 4

Thread: MYSQL server for PHP login

  1. #1
    wtvelocity is offline x10Hosting Member wtvelocity is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    9

    MYSQL server for PHP login

    Hi im new to PHP, so maybe I'm doing something wrong.

    I have a login script I copied, and am trying to put it on my site. Upon registration I get the error:
    Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'mysql.x10hosting.com' (1) in /home/darwin/public_html/database.php on line 6
    Unknown MySQL server host 'mysql.x10hosting.com' (1)
    What I THINK is happening is that I have the wrong MySQL host (I'm using exofire.net).
    here is my code for database.php:

    <?

    /**
    * Connect to the mysql database.
    */
    $conn = mysql_connect("mysql.x10hosting.com", "*********", "*******") or die(mysql_error());
    mysql_select_db('members', $conn) or die(mysql_error());

    ?>
    The Site I'm using it on is conquestofages.exofire.net.

    If anyone need more info, the source I copied from is Here:
    http://www.evolt.org/article/comment...265/index.html

    Thanks
    ~WTV~
    Last edited by bugfinder; 06-02-2008 at 04:10 PM. Reason: Removed username and password.

  2. #2
    bugfinder's Avatar
    bugfinder is offline Retired bugfinder is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    2,260

    Re: MYSQL server for PHP login

    the mysql server is "localhost"
    the mysql username if you told it to make one called test doesnt end up as test, it ends up as account_test
    :rant2:
    Please do not send me personal messages unless I have requested you to do so.
    Thank you.

    You can join us on irc for support and chat
    2 - connnect to irc either by the web interface or direct irc://irc.x10hosting.com:6667

  3. #3
    wtvelocity is offline x10Hosting Member wtvelocity is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    9

    Re: MYSQL server for PHP login

    Thanks that solved that problem. Sorry to bother you again, but now I'm getting this...

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user '(acount)_(username)'@'localhost' (using password: YES) in /home/(account name)/public_html/database.php on line 6
    Access denied for user '(account)_(username)'@'localhost' (using password: YES)
    Ummmm what? Thanks for any more help



    Edit:
    Can someone please help? I appreciate the swift response last time, and I know that it might not always happen. But please, I've been trying to make a login script for a while now, and it's frustrating thinking I got it working, only to get an error *i dont even understand*...

    Someone, any ideas plz? What does "password=YES" mean? thats prob whats messing up the script...

    Thanks
    Last edited by wtvelocity; 06-02-2008 at 08:26 PM. Reason: Automerged Doublepost

  4. #4
    Christopher's Avatar
    Christopher is offline Retired Christopher is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    USA
    Posts
    7,330

    Re: MYSQL server for PHP login

    "password=YES" means that it is using a password.
    Did you give the user permission on the database?

Closed Thread

Similar Threads

  1. catro.x10hosting offline ?
    By catro in forum Free Hosting
    Replies: 2
    Last Post: 01-17-2008, 11:36 AM
  2. MySQL Free server!?
    By Goran in forum Free Hosting
    Replies: 6
    Last Post: 06-24-2007, 05:48 AM
  3. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers