MYSQL启动的参数
--basedir=/usr/local/mysql
--datadir=/usr/local/mysql/data
--plugin-dir=/usr/local/mysql/lib/plugin
--user=mysql
--log-error=/usr/local/mysql/log/mysqld_error.log
--pid-file=/usr/local/mysql/data/mysqld.pid
启动参数可以组合使用,如下
/usr/local/mysql/bin/mysqld --daemonize --user=mysql --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/mysqld.pid --log-error=/usr/local/mysql/log/mysqld_error.log --plugin-dir=/usr/local/mysql/lib/plugin
或者只使用几个,如下
/usr/local/mysql/bin/mysqld --daemonize --user=mysql --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/mysqld.pid
可以根据需要自己设置mysql启动参数
标签:启动,--,MYSQL,pid,参数,usr,mysql,mysqld,local From: https://www.cnblogs.com/niway/p/17600477.html