gpt4 book ai didi

mysql - “GRANT ALL ON 数据库中的错误。* TO 命令

转载 作者:行者123 更新时间:2023-12-04 10:09:02 28 4
gpt4 key购买 nike

我正在尝试运行包含命令 GRANT ALL ON BIDB.* TO biouser@'localhost' IDENTIFIED by 'bio123!'; 的脚本.但不知何故我收到一条错误消息 biouser is not valid at this position and an identifier is expected .我附上了问题的图片。

enter image description here

最佳答案

它已在 mysql 8.0 中删除,请参阅 GRANT

改用

CREATE USER 'biouser'@'localhost' IDENTIFIED by 'bio123!';
GRANT ALL PRIVILEGES ON BIDB.* TO 'biouser'@'localhost';

关于mysql - “GRANT ALL ON 数据库中的错误。* TO 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61418813/

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