mysql登录 unknown variable 'datadir=/data1/mysql/var/'
修改mysql数据库路径后,用/usr/local/mysql/bin/mysql -u root -p 进入报错/usr/local/mysql/bin/mysql: unknown variable 'datadir=/data1/mysql/var/'my.cnf 配置问题 [client]#password = your_passwordport
·
修改mysql数据库路径后,用/usr/local/mysql/bin/mysql -u root -p 进入报错
/usr/local/mysql/bin/mysql: unknown variable 'datadir=/data1/mysql/var/'
my.cnf 配置问题
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
datadir = /data1/mysql/var/ #把这里已到下方mysqld部分里
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /data1/mysql/var/ #加这里
/usr/local/mysql/bin/mysql: unknown variable 'datadir=/data1/mysql/var/'
my.cnf 配置问题
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
datadir = /data1/mysql/var/ #把这里已到下方mysqld部分里
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /data1/mysql/var/ #加这里
更多推荐
已为社区贡献5条内容
所有评论(0)