Hi,
On 66.98.152.64 mysql server(if its a mysql server) :
vim /etc/my.cnf
Code:
[mysqld]
bind-address = 66.98.152.64
Grant access to a new database
If you want to add a new database called mydb for user db and remote IP 202.56.240.50 then you need to type the following
commands
mysql> prompt:
Code:
mysql> CREATE DATABASE mydb;
mysql> GRANT ALL ON mydb.* TO db@'202.56.240.50' IDENTIFIED BY 'urpassword';
Restart the mysql server, enter:
Code:
# /etc/init.d/mysql restart
Now you can connect using :
Code:
mysql -u db –h 66.98.152.64 –p
You can Monitor number of active connections to MySQL using Nagios using this
link: