Quote:
Originally Posted by yendhe
Hi,
As i have done configuration of multiple instance of mysql server on single machine (Centos6).Firstly i have installed Mysql on my machine and then similary configure second instance but stuck with some issue.As i am unable to start a second instance of mysql server due to some error. And i have also checked the ownership and permission of mysql2 directory i.e second mysql instance directory.
|
Read the "Question Guidelines" link in my posting signature. You need to provide details...saying "some issue" and "some error" tells us absolutely nothing...and you don't tell us what version of MySQL or CentOS...you mention 6, but not 6.xxxx???
Quote:
Here is my configuration file i.e my2.cnf
|
Please use CODE tags to make things easier to read.
Quote:
160326 19:04:08 [ERROR] /usr/libexec/mysqld: Can't create/write to file '/var/run/mysql2/mysqld2.pid' (Errcode: 2)
160326 19:04:08 [ERROR] Can't start server: can't create PID file: No such file or directory
160326 19:04:08 mysqld_safe mysqld from pid file /var/run/mysql2/mysqld2.pid ended
|
Does the directory structure exist? The file? What ARE the permissions on them? Owner? And are you trying to start things up as root?
The MySQL reference guide has instructions on how to run multiple instances:
http://dev.mysql.com/doc/refman/5.7/...e-servers.html