I am a little confused with setting up my new MySql server. It has to be a standalone server. Other webservers should connect to it.
The hostname of the webserver is "webserver", the IP is 192.168.1.50, and it's working
The hostname of the mysql server is "mysql", the IP is 192.168.1.60, and it's working
I like to use a hostname instead of IP address to connect to the mysql server.
In /etc/hosts (mysql server) I have:
127.0.0.1 localhost
192.168.1.50 webserver
The webserver has no virtual hosts, there is one big directory /var/www that contains several websites in development.
I have used this as a guide: http://library.linode.com/databases/mysql/standalone-mysql-server
On service mysql start:
start: Rejected send message, 1 matched rules; type="method_call",
sender=":1.8" (uid=1000 pid=5060 comm="start mysql ")
interface="com.ubuntu.Upstart0_6.Job" member="Start"
error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init")
Log entries
120421 16:10:31 InnoDB: Starting shutdown...
120421 16:10:36 InnoDB: Shutdown completed; log sequence number 0 44233
120421 16:10:36 [Note] /usr/sbin/mysqld: Shutdown complete
120421 16:14:04 [Note] Plugin 'FEDERATED' is disabled.
120421 16:14:04 InnoDB: Initializing buffer pool, size = 8.0M
120421 16:14:04 InnoDB: Completed initialization of buffer pool
120421 16:14:04 InnoDB: Started; log sequence number 0 44233
120421 16:14:04 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
120421 16:14:04 [ERROR] Do you already have another mysqld server running on port: 3306 ?
120421 16:14:04 [ERROR] Aborting
sudo netstat -antp | grep -i mysqlWhat is the output on the mysql server? – jippie Apr 21 '12 at 14:04sudo /etc/init.d/mysql start– jippie Apr 21 '12 at 14:10