Closed Thread
Results 1 to 6 of 6

Thread: Trouble connecting to Mysql...

  1. #1
    darellbee is offline x10Hosting Member darellbee is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    19

    Trouble connecting to Mysql...

    I am getting the error message, "access denied to user 'user@localhost' using password: YES, on two different scripts. One is CGI based and has been connected before. It was removed to try a PHP based script and this is when I the error message started. To see if it was the script, I went back to the CGI, which has worked before, and am getting the same error message. I have tried deleting the database and started over completely, and have tried, at this point, 3 different passwords and still the same problem. Any help would be appreciated!

  2. #2
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Trouble connecting to Mysql...

    Can you post the setting that you are using to connect to MySQL (Not the password of course)?

    "access denied to user 'user@localhost' using password: YES
    The username should be darellb
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  3. #3
    darellbee is offline x10Hosting Member darellbee is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    19

    Re: Trouble connecting to Mysql...

    Thanks for the reply TechAsh. The last settings I have tried:
    Database server=localhost
    Database Name =list
    Database user = dbridge
    Database password=XXXXXXX

    I thought the database user was the user you set up when you created the database. but these are the last settings I have used.
    Edit:
    darellb did not work though!!
    Last edited by darellbee; 07-31-2008 at 12:52 PM. Reason: Automerged Doublepost

  4. #4
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Trouble connecting to Mysql...

    You have to put your cPanel username and a underscore in front of the database name and user.

    Try this:
    Database server= localhost
    Database Name = darellb_list
    Database user = darellb_dbridge
    Database password= XXXXXXX
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  5. #5
    darellbee is offline x10Hosting Member darellbee is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    19

    Re: Trouble connecting to Mysql...

    You think you're so smart don't you!!!!.....Of course it worked!!!! Thanks for the help. I totally cannot believe it was that simple. All this time....Thanks TechAsh!!!!!
    Edit:
    I will say, thanks to the awesome response time of TechAsh, this thread is closed. Moving on!!!!
    Last edited by darellbee; 07-31-2008 at 01:27 PM. Reason: Automerged Doublepost

  6. #6
    tnl2k7 is offline Banned tnl2k7 is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    #offtopic ;)
    Posts
    3,131

    Re: Trouble connecting to Mysql...

    I'll close this thread for you then :D.

    -Luke.

    * Thread Closed *

Closed Thread

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  3. Connecting to mysql server [Help]
    By vAx1oNe in forum Free Hosting
    Replies: 2
    Last Post: 10-20-2007, 07:59 PM
  4. Trouble connecting to Remote Mysql
    By dead420 in forum Free Hosting
    Replies: 1
    Last Post: 10-19-2007, 08:21 PM
  5. 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