-
Notifications
You must be signed in to change notification settings - Fork 433
Remote MySQL
Harshad Yeola edited this page Aug 13, 2014
·
10 revisions
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 = <PUBLIC_IP_OF_EASYENGINE_SERVER>
Now restart MySQL server:
service mysql restart
mysql -u root -p
mysql > grant all privileges on *.* to 'root'@'<PUBLIC_IP_OF_EASYENGINE_SERVER>' with grant option;
mysql> flush privileges;
For MySQL credential EasyEngine used ~/.my.cnf
file.
We need to add remote MySQL server details in ~/.my.cnf
file
vim ~/.my.cnf
[client]
host=<REMOTE_MYSQL_HOST>
user=<REMOTE_MYSQL_USER>
password=<REMOTE_MYSQL_PASSWORD>
vim /etc/easyengine/ee.conf
[mysql]
grant-host=<PUBLIC_IP_OF_EASYENGINE_SERVER>
apt-get update
apt-get install mysql-client
We are used following variables:
- REMOTE_MYSQL_HOST = Remote MySQL server IP address/FQDN
- REMOTE_MYSQL_USER = Remote MySQL server username
- REMOTE_MYSQL_PASSWORD = Remote MySQL server password
- PUBLIC_IP_OF_EASYENGINE_SERVER = EasyEngine server public IP address/FQDN
If your EasyEngine server don't have static public IP address then
PUBLIC_IP_OF_EASYENGINE_SERVER = %
Now you can create any website with EasyEngine and now EasyEngine used your remote MySQL server for database creation.
EasyEngine (ee):
- Installation
- Stack Module
- Site Module
- Debug Module
- Secure Module
- Other commands
- Configurartion File
- EasyEngine Logs
Tutorials:
- SFTP Setup
- Remote MySQL
- Setup OpenDKIM
- HHVM with EE 2.x.x
- Prevent MySQL crashing
- Change WordPress Cache
- Migrate Website With EasyEngine
- EasyEngine with Hosting Providers
Misc:
- FAQ
- Roadmap
- [Support Forum] (http://community.rtcamp.com/c/easyengine/)
- EasyEngine Update
- EasyEngine Admin Tools
- EasyEngine Beta Testing
Chat:
- [EasyEngine Developer Chat] (https://gitter.im/rtCamp/easyengine)
Testing:
- [Travis-CI] (https://travis-ci.org/rtCamp/easyengine/)
Donations:
Recently Modified: