mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY 'MyNewPass4!'' at line 1
出现了如上的报错,修改不了密码,请问原因是什么?
还有,我的服务器的系统是centos7,在安装mysql时好像与centos6的不同,老师能否给一下centos7下的权威的安装方法?
注:当前安装的是mysql-community-server-5.6.42-2.el7.x86_64 版本,不知是否合适?
服务器版本:centos_7_04_64_20G