gpt4 book ai didi

mysql - 无法在 mysql 5.1.73 上创建新用户

转载 作者:行者123 更新时间:2023-11-29 00:07:29 24 4
gpt4 key购买 nike

这个好像不行

mysql> SET PASSWORD FOR juser201411@localhost= PASSWORD(".6,y:C2a");

ERROR 1133 (42000): Can't find any matching row in the user table

之后我尝试从 mysql.user 手动添加

mysql> update mysql.user set password=('.6,y:C2a') where User='juser201411' and Host='localhost';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 0 Changed: 0 Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> select User from mysql.user;+------+
| User |
+------+
| root |
| root |
+------+
2 rows in set (0.00 sec)

centos 6.5 x64

最佳答案

尝试使用CREATE USER 语法。有关详细信息,请参阅 MySQL doc

CREATE USER 'juser201411'@'localhost' IDENTIFIED BY PASSWORD '.6,y:C2a';

关于mysql - 无法在 mysql 5.1.73 上创建新用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26865462/

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