Closed Thread
Results 1 to 5 of 5

Thread: Problem connecting to database

  1. #1
    jnoalexander is offline x10Hosting Member jnoalexander is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    6

    Problem connecting to database

    Hi

    The past couple of days, I've not been able to see my Drupal site, www.highhillsview.com. Although I havent made any changes to it for a couple of weeks - has there been a change in the database connector recently - it really looks like a database connection problem - or has there been some PHP-based change that could have caused this?

    Many thanks

    James

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Problem connecting to database

    Hi,
    I find this error log in one of your files
    Code:
    [24-Mar-2010 03:28:45] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/jnoalexa/public_html/test_mysql_connect.php on line 2
    [24-Mar-2010 03:45:30] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/jnoalexa/public_html/test_mysql_connect.php on line 2
    [19-Jul-2010 08:16:30] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.76' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect.php on line 2
    [19-Jul-2010 08:16:40] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.75' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect2.php on line 2
    [20-Jul-2010 02:45:22] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.75' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect2.php on line 2
    [20-Jul-2010 02:52:37] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.76' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect.php on line 2
    [20-Jul-2010 02:56:09] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.75' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect.php on line 2
    [20-Jul-2010 02:57:48] PHP Warning:  mysql_select_db() [<a href='function.mysql-select-db'>function.mysql-select-db</a>]: Access denied for user 'jnoalexa'@'10.33.248.76' (using password: NO) in /home/jnoalexa/public_html/test_mysql_connect.php on line 4
    [20-Jul-2010 02:57:48] PHP Warning:  mysql_select_db() [<a href='function.mysql-select-db'>function.mysql-select-db</a>]: A link to the server could not be established in /home/jnoalexa/public_html/test_mysql_connect.php on line 4
    [20-Jul-2010 02:58:35] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [20-Jul-2010 02:59:20] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [20-Jul-2010 03:01:10] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on 'boru.x10hosting.com' (4) in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [20-Jul-2010 03:01:12] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [20-Jul-2010 03:01:19] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on 'boru.x10hosting.com' (4) in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [20-Jul-2010 03:01:38] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.75' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [20-Jul-2010 03:03:05] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.76' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [07-Aug-2010 16:26:09] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.75' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect.php on line 7
    [07-Aug-2010 16:26:16] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'jnoalexa_jnoalex'@'10.33.248.75' (using password: YES) in /home/jnoalexa/public_html/test_mysql_connect2.php on line 2
    [05-Aug-2011 05:58:05] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/jnoalexa/public_html/test_mysql_connect2.php on line 2
    [05-Aug-2011 06:01:41] PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/jnoalexa/public_html/test_mysql_connect2.php on line 2
    It means that there is problem with connecting to mysql..by one of your scripts is facing the problem.I am not too sure why the database should be problematic..something should have happend to the drupal database.
    In order to know if the hills -site's problem is simlar, just try installing a drupal site using softaculous and you would know immediately
    if the problem is with that particular database or the account.
    For now I dont see any reason why the account could be wrong.Hence try using softaculous and plz revert back if you have a problem.
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    jnoalexander is offline x10Hosting Member jnoalexander is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    6

    Re: Problem connecting to database

    It means that there is problem with connecting to mysql..by one of your scripts is facing the problem.I am not too sure why the database should be problematic..something should have happend to the drupal database.
    In order to know if the hills -site's problem is simlar, just try installing a drupal site using softaculous and you would know immediately
    if the problem is with that particular database or the account.
    For now I dont see any reason why the account could be wrong.Hence try using softaculous and plz revert back if you have a problem.[/QUOTE]

    Yes - I know it gives this error - I have the script specifically to test the connection to the database.
    According to MySQL, a Type 111 Error -
    'Usually it indicates network connectivity trouble and you should check the condition of your network if this error occurs frequently'

    I haven't changed the database and the site hasn't been altered. I'm not sure how re-installing would help fix a network connectivity problem - are you suggesting that I can fix the problem by creating a new database?

    ---------- Post added at 08:04 PM ---------- Previous post was at 07:47 PM ----------

    Well the connectivity problem was fixed by changing the mysql-boru to boru. I guess that it was a DNS alteration. However, the site is still showing as offline...

  4. #4
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: Problem connecting to database

    mysql host should ALWAYS be noted as "localhost" to ensure it is not affected by changes to server configurations.
    Do you have trouble reaching your site?
    Check here first: News and Announcements


    Don't forget that x10hosting has an irc server as well. Come and join the fun
    server: irc.x10hosting.com, main channel: #x10hosting
    There's a lot helpful users there if need help building your site

  5. #5
    jnoalexander is offline x10Hosting Member jnoalexander is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    6

    Re: Problem connecting to database

    Oh - seems like it worked after all!

Closed Thread

Similar Threads

  1. Problem with connecting to MySql database
    By evgeny.lychev90 in forum Free Hosting
    Replies: 1
    Last Post: 01-19-2011, 08:07 AM
  2. Replies: 1
    Last Post: 04-13-2010, 09:53 PM
  3. problem to connecting your mysql database
    By muthu18 in forum Free Hosting
    Replies: 1
    Last Post: 03-24-2010, 05:25 AM
  4. Replies: 9
    Last Post: 02-18-2010, 07:34 PM
  5. ASP.NET - Problem connecting to database
    By machado in forum Free Hosting
    Replies: 2
    Last Post: 10-18-2009, 10:12 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