mysql root 访问被拒绝_mysql – 访问被拒绝用户’root @ localhost'(使用密码:NO)

我是新的mysql,我试图运行Wordpress inmy windows桌面,它需要Mysql。

我安装一切与微软提供的Web平台安装程序。我从来没有为mysql设置root密码,并在最后安装wordpressit askfor mysql的root密码。

root的默认密码是什么(如果有的话)

和如何改变呢?

我试试

mysql -u root password '123'

但它告诉我

Access denied for user 'root@localhost' (using password:NO)

之后我试试

mysql -u root -p

但它要求一个密码,我没有

先谢谢你

更新:因为Bozho说我做了以下

1 - I stoped MySql Service from Windows services

2 - Open CMD

3 - change location to cd c:\program files\mysql\bin

4 - write this command

mysqld --defaults-file="C:\\program files\\mysql\\mysql server 5.1\\my.ini" --init-files=C:\\root.txt

5 - Command run with a warning about characterset which I mentioned below

6 - I start MySql Service from windows services

7 - in command line I write

mysql -u root -p

EnterPassword: 123 // 123 was the password

8 - the commandline shows following bug

Access denied for user 'root@localhost' (using password:**YES**)

我在等你听到。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值