View Single Post
  #4  
Old 29th June 2011, 12:43
liloman liloman is offline
Junior Member
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Netstat output:
Code:
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN      26163/mysqld


Firewall output:
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
fail2ban-ssh  tcp  --  anywhere             anywhere            multiport dports ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain fail2ban-ssh (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

I read out about commenting the bind line. I did it. I restarted the mysql server (after creating a new password for the root user).

With that, the currenlty nestat result is:
Code:
tcp        0      0 *:mysql                 *:*                     LISTEN  31153/mysqld
The comand "cat php.ini | grep sql.safe.mode" results:
Code:
sql.safe_mode = Off

But I'm still getting an error when I try to access to the test.php:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'XXXX'@'XXXX.com' (using password: YES) in /X/test.php on line 10
Access denied for user 'XXXX'@'XXXX.com' (using password: YES)

I use the correct user/password.
Is that messages only a credentials error or a misconfiguration of the mysql/web server?

Last edited by liloman; 29th June 2011 at 13:13. Reason: Forgot code
Reply With Quote