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 'You have an error in your SQL syntax' at line 1
前面也执行了create user 'root'@'%' identified by '123456';
到了grant all privileges on . to 'root'@'%' identified by 'root' with grant option ;就报这个错