我是新的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**)
我在等你听到。