数据库
首页 > 数据库> > mysql杂七杂八

mysql杂七杂八

作者:互联网

启动前初始化

/usr/local/mysql5722/bin/mysqld --initialize --basedir=/home/test_mysql/mysql13002/ --init-file=/home/test_mysql/mysql13002/etc/my.cnf --datadir=/home/test_mysql/mysql13002/data --user=mysql --lc-messages-dir=/usr/local/mysql5722/share

启动

./mysqld_safe --default_file=/home/test_mysql/mysql13002/etc/my.cnf

进入

./mysql --socket=/tmp/mysql13002.sock -uuser -ppassword

 

初始化之前一定要叫.cnf的出现的目录都建一遍

标签:杂七杂八,cnf,file,mysql,test,home,mysql13002
来源: https://www.cnblogs.com/sweetcookie/p/11160366.html