
#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。](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
分析原因应该为:$cfg[‘Servers’][$i][‘controlhost’] = ‘192.168.164’;而其本身并不具有全局权限!因此需要添加复制root用户,使其主机为192.168.1.64。
在此步骤报错,不过截图未整理,最后不得不在服务器上的phpMyAdmin修改$cfg[‘Servers’][$i][‘controlhost’] = ‘localhost’;才正常实现复制root用户成功的步骤。
![权限成功更新,此时$cfg['Servers'][$i]['controlhost'] = '192.168.1.64';了。也就是说可以在其他机器上通过phpmyadmin管理服务器上的MySQL。](https://blog.ytso.com/wp-content/themes/justnews/themer/assets/images/lazy.png)
权限成功更新,此时$cfg[‘Servers’][$i][‘controlhost’] = ‘192.168.1.64’;了。也就是说可以在其他机器上通过phpmyadmin管理服务器上的MySQL。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/database/251014.html