While taking the output of the command mysqladmin proc stat, If you are getting logs like
056 | unauthenticated user | Ip address | | Connect | | Reading from net |
To avoid such problem add following lines in /etc/my.cnf file to avoid access for
unauthenticated user.
root@server [~]# vi /etc/my.cnf
skip-networking
skip-name-resolve
skip-host-cache
skip-locking
Now restart the mysql service and check mysql process logs again.
By doing this we are disabling networking in /etc/my.cnf
The only limitation would be the users are not able to connect to MYSQL using an external
connection MYSQL manager,But they can still use PHPMyAdmin via cpanel.
You can also block the Ip address using Csf :
Csf -d Ip address {unauthenticated mysql user}
Csf -r
No comments:
Post a Comment