MySQL Forums
Forum List  »  PHP

mysql_connect() error
Posted by: Arunesh Gupta
Date: June 10, 2014 12:47PM

Hi,

Recently I have started seeing these errors in the logs. My site that was working fine for five years has starting crashing every few minutes. I am not sure if someone is trying to hack into it or my code is bad. In the logs snippets below a name "psarin" is somehow trying to connect. Sometimes I see this name, sometimes I don't.

[09-Jun-2014 15:56:55] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on 'mysql' (35) in /includes/plhs.php on line 6
[09-Jun-2014 15:57:11] PHP Warning: mysql_select_db() [<a href='function.mysql-select-db'>function.mysql-select-db</a>]: Can't connect to MySQL server on 'mysql' (35) in /includes/plhs.php on line 7
[09-Jun-2014 15:57:11] 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 /includes/plhs.php on line 7
[09-Jun-2014 15:57:17] PHP Warning: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Access denied for user 'psarin'@'localhost' (using password: NO) in /includes/plhs.php on line 9

[09-Jun-2014 15:24:21] 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: 61 in /includes/plhs.php on line 6
[09-Jun-2014 15:24:21] PHP Warning: mysql_select_db() [<a href='function.mysql-select-db'>function.mysql-select-db</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 61 in /includes/plhs.php on line 7
[09-Jun-2014 15:24:21] 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 /includes/plhs.php on line 7

Options: ReplyQuote


Subject
Written By
Posted
mysql_connect() error
June 10, 2014 12:47PM
June 10, 2014 10:32PM
June 12, 2014 11:44PM
June 13, 2014 04:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.