没有不值得去解决的问题,也没有不值得去学习的技术!

Fixing a MySQL Syntax Error When Adding Users via phpMyAdmin

#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
#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
#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
The likely cause is: $cfg['Servers'][$i]['controlhost'] = '192.168.164'; and it does not have global privileges! Therefore, you need to add a copy of the root user and set its host to 192.168.1.64.
The likely cause is: $cfg[‘Servers’][$i][‘controlhost’] = ‘192.168.164’; and it does not have global privileges! Therefore, you need to add a copy of the root user and set its host to 192.168.1.64.

An error occurred at this step, but I did not organize the screenshot. Ultimately, I had to change $cfg[‘Servers’][$i][‘controlhost’] = ‘localhost’; in phpMyAdmin on the server to successfully complete the step of copying the root user.

Edit the root user privileges for the host 192.1.68.1.64!
Edit the root user privileges for the host 192.1.68.1.64! Set it to have global privileges for the database.
Edit the zhidao.hmwis.top user privileges on the localhost host! Set it to have global privileges for zhidao.hmwis.top.
Edit the zhidao.hmwis.top user privileges on the localhost host! Set it to have global privileges for zhidao.hmwis.top.
Privileges updated successfully. At this point, $cfg['Servers'][$i]['controlhost'] = '192.168.1.64'; is set. This means you can manage the server's MySQL through phpMyAdmin from other machines.
Privileges updated successfully. At this point, $cfg[‘Servers’][$i][‘controlhost’] = ‘192.168.1.64’; is set. This means you can manage the server’s MySQL through phpMyAdmin from other machines.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系