Closed Thread
Results 1 to 7 of 7

Thread: mysql db server; php connecting error

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

    mysql db server; php connecting error

    Hey,
    I tried localhost, and I also tried mysql.x10hosting.com.
    I'm not sure what works for the db server to allow me to connect to the mysql database that I made via the cpanel.

    bugfinder confirmed that the hostname is in fact localhost

    define("DB_SERVER", "localhost");
    define("DB_USER", "rfc1_rfcuser");
    define("DB_NAME", "rfc1_rfc");
    those are the 3 php constants that i am using.

    here is the error i get:
    Access denied for user 'rfc1_rfcuser'@'localhost' to database 'rfc1_rfc'
    http://rebelsforchrist.com

    Thanks much,
    matthew

  2. #2
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: mysql db server; php connecting error

    You need to grant privileges to the mysql user with the mysql database via cPanel. It's tward the bottom of the MySQL page.
    Thanks,
    Brandon Long

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

    Re: mysql db server; php connecting error

    i chose the privileges. then, it said " MySQL® Database Wizard; User was added to the database ."
    then, i hit go back.
    then, the page seems to look the same as it did before i hit add user:

  4. #4
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: mysql db server; php connecting error

    See were it says 'Add User to Database', select them there and click 'All Privileges'.
    Thanks,
    Brandon Long

  5. #5
    rebelsforchrist is offline x10Hosting Member rebelsforchrist is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    23

    Re: mysql db server; php connecting error

    hmm, i did that, but no luck. i hit the 'add' button there. i chose all privs. then i hit go back after submitting the changes. and, it looks the same and gives same error on the webpage.

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

    Re: mysql db server; php connecting error

    Im going to suggest you didnt click the "Make changes" button as I just tried it on your account and it went straight through.
    :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

  7. #7
    rebelsforchrist is offline x10Hosting Member rebelsforchrist is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    23

    Re: mysql db server; php connecting error

    hey bugfinder, that's extremely strange that it worked for you. thanks a lot for doing this on my account for me. by 'hitting the submit button', i mean i hit the make changes button after i had chosen all privs. it's really strange. maybe it's because i checked the all privs box instead of checking each individual box.
    thanks to both!
    Last edited by rebelsforchrist; 06-27-2008 at 01:56 AM.

Closed Thread

Similar Threads

  1. MYSQL server for PHP login
    By wtvelocity in forum Free Hosting
    Replies: 3
    Last Post: 06-05-2008, 11:22 AM
  2. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  3. Replies: 4
    Last Post: 11-01-2007, 01:50 PM
  4. Connecting to mysql server [Help]
    By vAx1oNe in forum Free Hosting
    Replies: 2
    Last Post: 10-20-2007, 07:59 PM
  5. Internal Server Error
    By joandajer in forum Free Hosting
    Replies: 3
    Last Post: 10-28-2006, 07:22 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