mysql> set password for `root`@`localhost`=password(`123456`);
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 'passw
ord(`123456`)' at line 1
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.02 sec)
https://blog.csdn.net/qq_43270153/article/details/108148441