为什么这个语句在debian-linux-gnu (x86_64)上的Distrib10.1.29-MariaDB中不起作用,而在MySQL中起作用?
ALTER USER 'root'@'localhost' IDENTIFIED
WITH mysql_native_password BY 'MyPassword';
错误:
错误1064 (42000):您的SQL语法中有一个错误;请查看与您的MariaDB服务器版本相对应的手册,以获得正确的语法,以便在用户'root'@'localhost‘附近使用由’MyPassword‘标识的mysql_native_password;
谢谢。
发布于 2018-07-25 05:57:38
ALTER USER
语句是在MariaDB 10.2.0 (您在10.1.29中)中引入的,这就是问题所在。请参阅https://mariadb.com/kb/en/library/error-1604/
https://stackoverflow.com/questions/51507791
复制相似问题