gpt4 book ai didi

mysql - 由于 MySQL 用户密码,PHPMyAdmin 配置不起作用?

转载 作者:行者123 更新时间:2023-12-04 10:05:46 25 4
gpt4 key购买 nike

你好 stackoverflow 社区!

当我尝试在我的 debian 服务器上安装并随后配置我的 phpmyadmin 时,我总是收到此错误消息。

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 'debian123'' at line 1

here a screenshot of it

我正在使用: debian 版本:9 ; MySql 版本:8.0.19

我试过的:
  • 删除 phpmyadmin 并重新安装
  • 尝试另一个语句来授予用户权限

  • 我希望你能帮助我解决我的问题,因为我为此苦苦挣扎了很长时间。

    先感谢您

    ~HTL_Krems_Engineer

    最佳答案

    这是较新版本的 MySQL 的更改。

    您不能再使用 grant x on y.z to username identified by 'debian123' .

    您必须拆分用户创建 into multiple steps.

    你的 MySQL 应该是这样的:

    mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root';
    mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

    关于mysql - 由于 MySQL 用户密码,PHPMyAdmin 配置不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61599085/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com