通过phpMyAdmin添加用户的时候报错:check the manual that corresponds to your MySQL server version for the right syntax to use的解决!

#1064 – 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’* TO ‘zhidao.hmwis.top’@’localhost” at line 1

分析原因应该为:$cfg[‘Servers’][$i][‘controlhost’] = ‘192.168.164’;而其本身并不具有全局权限!因此需要添加复制root用户,使其主机为192.168.1.64。

在此步骤报错,不过截图未整理,最后不得不在服务器上的phpMyAdmin修改$cfg[‘Servers’][$i][‘controlhost’] = ‘localhost’;才正常实现复制root用户成功的步骤。

编辑192.1.68.1.64主机上的root用户权限!将其设置为数据库的全局权限。

编辑localhost主机上的zhidao.hmwis.top用户权限!将其设置为拥有zhidao.hmwis.top的全局权限。

权限成功更新,此时$cfg[‘Servers’][$i][‘controlhost’] = ‘192.168.1.64’;了。也就是说可以在其他机器上通过phpmyadmin管理服务器上的MySQL。

永夜