If you would like to access remote MySQL server from EasyEngine, You have to adjust some settings on remote MySQL server.
vim /etc/mysql/my.cnf
# skip-networking
bind-address =
Now restart MySQL server:
service mysql restart
mysql -u root -p
mysql > grant all privileges on *.* to 'root'@'' IDENTIFIED BY 'REMOTE_MySQL_PASSWORD' with grant option;
mysql> flush privileges;
For MySQL credential EasyEngine used /etc/mysql/conf.d/my.cnf file.
We need to add remote MySQL server details in /etc/mysql/conf.d/my.cnf file
vim /etc/mysql/conf.d/my.cnf
[client]
host=<REMOTE_MYSQL_HOST> user=<REMOTE_MYSQL_USER> password=<REMOTE_MYSQL_PASSWORD>
vim /etc/ee/ee.conf
[mysql]
grant-host=<PUBLIC_IP_OF_EASYENGINE_SERVER>
apt-get update
apt-get install mysql-client
We used following variables:
If your EasyEngine server don’t have static public IP address thenPUBLIC_IP_OF_EASYENGINE_SERVER = %
Now you can create any website with EasyEngine and now EasyEngine used your remote MySQL server for database creation.