mysql5.7.10

5.7.10问题

复制/support-file/my-default.cnf  修改并重命名my.cnf 
修改
basedir = /usr/local/mysql
  datadir = /usr/local/mysql/data
port = 3306
# server_id = .....
  socket = /tmp/mysql.socket


Can't read from message file errmsg.sys?
解决
复制  mysql 二进制解压缩包下的share/errmsg.sys 到datadir下(/usr/local/mysql/data/errmag.sys)

初始化:
./mysqld --defaults-file=/local/mysql-5.7.10-linux-glibc2.5-x86_64/support-files/my.cnf --initialize --user=mysql

http://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html


Please read "Security" section of the manual to find out how to run mysqld as root!
这个版本mysql不允许用户直接操作root权限,./mysqld --user=root来强制启动

你可能感兴趣的:(mysql5.7.10)