天天看點

mysql8設定遠端連接配接報錯grant all privileges on *.* to 'root'@'%' identified by

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 'root' with grant option' at line 1

mysql8中已經不支援grant all privileges on *.* to 'root'@'%' identified by '密碼' with grant option這種寫法。

應該使用