ERROR 1045: Access denied for user 请教这个问题如何解决

qqhong 2005-01-10 11:07:41
我在装一个东西时,在执行到某一步时,就是出现这个问题,
我也到网上找了,但是就是没有找到解决的方法。
如果那位朋友知道,请告知一声,定送上分。
...全文
7341 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hcqhappy 2005-01-27
  • 打赏
  • 举报
回复
#This File was made using the WinMySQLAdmin 1.4 Tool
#2005-1-27 9:42:19

#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions

[mysqld]
basedir=C:/mysql
#bind-address=192.168.1.4
default-character-set=gbk
datadir=C:/mysql/data
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=C:/mysql/bin/mysqld-nt.exe
user=root
password=admin

为什么连接用 root 密码 admin 还提示 ERROR 1045:
mathematician 2005-01-13
  • 打赏
  • 举报
回复
为qqhong用户分配所有权限,密码为111:
mysql>grant all on *.* to qqhong@'%' identified by '111';
GJA106 2005-01-13
  • 打赏
  • 举报
回复
建议用工具来创建。MySQL-Front、DBTools Manager ...之类的工具都提供GUI创建用户。
qqhong 2005-01-12
  • 打赏
  • 举报
回复
如何给该用户分配权限啊
mathematician 2005-01-10
  • 打赏
  • 举报
回复
该用户没有权限。
使用root用户或者给该用户分配权限都可以解决此问题。
trampwind 2005-01-10
  • 打赏
  • 举报
回复
Access denied for user 是for 哪个user,如果你设定了这个用户的密码,比如你设了root密码,要进入mysql: mysql -u root也会提示Access denied ..的。必须明确指定-p: mysql -u root -p,输入密码才能进入mysql。你可以进入mysql后,use mysql,进入mysql库,select * from user,看看有没你的这个被denied的user@???,若没有,可以grant all on *.* to user@???,然后再试。

56,803

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧