+ Reply to Thread
Results 1 to 5 of 5

Thread: MySQL Error

  1. #1
    Whitewolf is offline x10Hosting Member Whitewolf is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    24

    MySQL Error

    Right im lost lol, i keep getting these error codes no matter what i try!

    Code:
    Warning:  mysql_connect() [function.mysql-connect]: Access denied for user 'ecconew'@'stoli.x10hosting.com' (using password: YES) in /home/ecconew/public_html/faqbase/faqforge-1.3.2/admin/index.php on line 41
    
    Warning:  mysql_select_db() [function.mysql-select-db]: Access denied for user 'ecconew'@'localhost' (using password: NO) in /home/ecconew/public_html/faqbase/faqforge-1.3.2/admin/index.php on line 42
    
    Warning:  mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/ecconew/public_html/faqbase/faqforge-1.3.2/admin/index.php on line 42
                   v 1.3.2

  2. #2
    DJHolliday is offline x10Hosting Member DJHolliday is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    38

    Re: MySQL Error

    have you tried to connect to 'localhost' rather than connecting to your domain?
    That usually does the trick
    DJ
    ---------------------------------------------
    Quis Custodiet Ipsos Custodes?

  3. #3
    arsonistx is offline x10 Lieutenant arsonistx is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    308

    Re: MySQL Error

    Usually you use localhost for the first one.
    For the username and password..

    You must set up a database and add a database username and password to it. This can be done right in cPanel. The username will be prefixed with your account login name. (ie: if your username is testuser and the database username is usernamehere, the database name will be testuser_usernamehere) The password is not prefixed.
    Also, your database name will be prefixed with your account username. (ie: username = testuser, database name = database, the full database name is testuser_database)

    Hope this helps!~
    Last edited by arsonistx; 11-05-2007 at 03:56 PM.

  4. #4
    Whitewolf is offline x10Hosting Member Whitewolf is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    24

    Re: MySQL Error

    Great help, just one more thing,

    What do i fill in the:

    $dbServer = " ??? ";

  5. #5
    naim4u's Avatar
    naim4u is offline x10Hosting Member naim4u is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    51

    Re: MySQL Error

    hey , your didnot select the database ... correctly or your host or pw.
    if u correct that it willl go cetainly
    Edit:
    you should fill
    $dbServer = "localhost";
    Last edited by naim4u; 11-06-2007 at 10:35 AM. Reason: Automerged Doublepost

+ Reply to Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. Have a problem with my forum
    By tikloos in forum Scripts & 3rd Party Apps
    Replies: 43
    Last Post: 01-19-2006, 01:14 AM
  3. {req} Banners
    By SEŅOR in forum The Marketplace
    Replies: 23
    Last Post: 01-05-2006, 03:15 PM
  4. vBulletin mySQL error!
    By dphiance in forum Free Hosting
    Replies: 3
    Last Post: 06-11-2005, 02:28 AM
  5. Replies: 19
    Last Post: 04-05-2005, 05:55 PM

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