Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,当我尝试连接到 cleardb 中的数据库时,它给了我这个错误:
1044 - Access denied for user 'root'@'%' to database 'test'
当它通过navicat 连接并尝试上传新的test.sql 文件来更新我的数据库时,我得到了同样的错误。
有办法吗?
MySQL 中的默认 root 用户没有访问本地主机外部的权限,因此您应该创建一个用户以便能够执行以下操作:
CREATE USER 'someuser'@'%' IDENTIFIED BY "your_password"; GRANT ALL PRIVILEDGES ON test.* TO 'someuser'@'%';
然后尝试与该用户连接