本帖最后由 as614001 于 2022-5-13 14:56 编辑
【搞不懂,直接换镜像。一路畅通】
要更改密码认证,但是狗东西就是报错。
报错1
MariaDB [mysql]> ALTER USER 'root'@'%' IDENTIFIED VIA mysql_native_password
-> USING PASSWORD('root');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER 'root'@'%' IDENTIFIED VIA mysql_
native_password
USING PASSWORD('root')' at line 1
报错2
MariaDB [mysql]> ALTER USER;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER' at line 1
报错3
MariaDB [mysql]> ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'USER 'root'@'%' IDENTIFIED WITH mysql
_native_password BY 'root'' at line 1
已经认真检查过 符号 一个个字敲了 看提示就是只要用了 没有读取ALTER
求助
|