separate Web server & DB server and connect via private IP
i have done this on DO but im not sure its also possible in Linode or not.
what i want to do is to have 2 servers
1. web server
2. DB server (Mysql)
2nd server (DB) will be connected with web server via private IP only. and will not be connected to public ip. and both will be placed on same DC ofcource.
is it possible?
4 Replies
Yes, it's possible.
What you want is similar to this documentation:
Just use your private addresses instead.
![](
this is the error i got when i try to change bind-address and restart mysql service
user@localhost:~$ sudo systemctl restart mysql.service
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
user@localhost:~$ systemctl status mysql.service
? mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
Active: activating (start-post) (Result: exit-code) since Thu 2017-03-30 14:41:22 UTC; 12s ago
Process: 6932 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
Process: 6929 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
Main PID: 6932 (code=exited, status=1/FAILURE); : 6933 (mysql-systemd-s)
CGroup: /system.slice/mysql.service
??control
??6933 /bin/bash /usr/share/mysql/mysql-systemd-start post
??6984 sleep 1
any idea, how can i resolve this?