Problem connecting to database

Status
Not open for further replies.

jnoalexander

New Member
Messages
10
Reaction score
0
Points
0
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
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
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.
 

jnoalexander

New Member
Messages
10
Reaction score
0
Points
0
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...
 

Anna

I am just me
Staff member
Messages
11,772
Reaction score
591
Points
113
mysql host should ALWAYS be noted as "localhost" to ensure it is not affected by changes to server configurations.
 
Status
Not open for further replies.
Top