无法使用phpmyadmin添加密码用户

时间:2016-12-02 17:16:13

标签: sql phpmyadmin easyphp

我正在使用easyPHP Devserver 16.1。 我试图在phpmyadmin上添加一个带密码的新用户,但即使我输入密码,当我检查用户时,也没有。

my screenshot

我尝试更改root的密码,也在我的config.inc.php中更改它,但后来我再也无法查看我的用户和数据库,所以我重新安装了easyphp。 现在我的问题是为什么我不能在phpMyadmin上创建一个带密码的用户? 当我用密码创建一个新用户时,这是我的SQL请求:

CREATE USER 'test'@'localhost' IDENTIFIED WITH mysql_native_password AS '***';GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;

抱歉我的英文不好:/

编辑:

所以我复制并粘贴在命令行客户端,我犯了一个错误:

CREATE USER 'isaac'@'localhost' IDENTIFIED WITH mysql_native_password AS 'isaac';GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;

我没有更改“在上授予所有权限。要'测试'@'localhost'”所以我有这样的错误消息: #1524 - Plugin '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29' is not loaded.

然后我纠正了我的错误:

CREATE USER 'isaac'@'localhost' IDENTIFIED WITH mysql_native_password AS 'isaac'; GRANT ALL PRIVILEGES ON *.* TO 'isaac'@'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;

我有这个错误: #1396 - Operation CREATE USER failed for 'isaac'@'localhost'

0 个答案:

没有答案