Closed Thread
Results 1 to 4 of 4

Thread: Can't connect to sql...

  1. #1
    garthgillman146 is offline x10Hosting Member garthgillman146 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    5

    Can't connect to sql...

    I was just modifying small things on my website, and suddenly I'm not able to access sql. I get this error:
    Warning: mysql_connect() [function.mysql-connect]: Access denied for user '***'@'int.web3.vital.x10hosting.com' (using password: YES) in /home/***/public_html/test/***.php on line 157
    Unable to connect to database: Access denied for user '***'@'int.web3.vital.x10hosting.com' (using password: YES)

    How can i fix this???

  2. #2
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Can't connect to sql...

    Hello!
    All the links that I checked randomly just now in your main domain as well as sub domain, seemed to be working fine.
    Please make sure that, you have used:
    -------------------------------
    servername = localhost
    username = cpanelusername_databaseusername
    databasename = cpanelusername_database
    password = password for cpanelusername_databaseusername
    -------------------------------

  3. #3
    garthgillman146 is offline x10Hosting Member garthgillman146 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    5

    Re: Can't connect to sql...

    I double checked but I still get the same error...

  4. #4
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Can't connect to sql...

    Have you granted all the necessary permissions to database user and linked both the database user and database itself?

    Could you please verify that you have these IPs listed under your cPanel >> Remote Database Access Hosts :

    10.33.248.%
    10.33.249.%
    192.168.1.%

Closed Thread

Similar Threads

  1. Unable to connect to the database:Could not connect to MySQL
    By edificiozamenhoff78 in forum Free Hosting
    Replies: 3
    Last Post: 06-06-2011, 02:09 PM
  2. Replies: 4
    Last Post: 12-14-2010, 07:20 AM
  3. Replies: 1
    Last Post: 11-12-2010, 05:57 AM
  4. Replies: 2
    Last Post: 10-14-2010, 01:50 PM
  5. Replies: 1
    Last Post: 02-01-2010, 07:05 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