启动数据库
/service/mysql.5.7/bin/mysqld_safe --defaults-file=/service/mysql.5.7/etc/my.cnf &
/usr/local/mysql/bin/mysqld_safe --defaults-file=/usr/local/mysql/etc/my.cnf &
新数据库1
/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf &
/service/mysql/bin/mysqld_safe --defaults-file=/service/mysql/etc/my.cnf &
rm -rf 3307-bin.000*
ssh root@172.31.103.213 登入跳转数据库
初始化
/service/mysql/bin/mysqld --defaults-file=/service/mysql/etc/my.cnf --initialize-insecure --user=mysql
/usr/local/mysql/bin/mysqld_safe &
/bin/sh /usr/local/mysql/bin/mysqld_safe
数据库修改配置文件的权限,错误日志
chown mysql:mysql my.cnf
chown mysql:mysql error3306.log