我是 MySQL 的新手,我正在尝试在我的 Windows 桌面上运行 WordPress,它需要 MySQL.
I'm new to MySQL, I'm trying to run WordPress in my Windows desktop and it needs MySQL.
我使用 Microsoft 提供的 Web Platform Installer 安装所有内容.我从来没有为 MySQL 设置过 root 密码,在安装 WordPress 的最后一步,它要求输入 MySQL 服务器密码.
I install everything with Web Platform Installer which is provided by Microsoft. I never set a root password for MySQL and in the final step of installing WordPress, it asks for a MySQL server password.
root 的默认密码是多少(如果有的话)以及如何修改?
What is the default password for root (if there is one) and how to change it?
我试过了:
mysql -u root password '123'
但它显示给我:
Access denied for user 'root@localhost' (using password:NO)
在此之后我尝试:
mysql -u root -p
但是,它要求输入密码,而我没有.
However, it asks for a password which I don't have.
更新:按照 Bozho 的建议,我做了以下事情:
Update: as Bozho suggested, I did the following:
执行下面的命令
Executed the command below
mysqld --defaults-file="C:\\program files\\mysql\\mysql server 5.1\\my.ini" --init-files=C:\\root.txt
该命令运行时出现了关于我在下面提到的字符集的警告
The command ran with a warning about character set which I mentioned below
我在命令行写
mysql -u root -pEnterPassword: 123//123 是密码
命令行显示如下错误
用户root@localhost"的访问被拒绝(使用密码:**YES**)
我该如何解决这个问题?我在等你的消息.
How do I solve this? I'm waiting to hear from you.
您可以 重置您的根密码.请记住,不建议使用没有密码的 root.
You can reset your root password. Have in mind that it is not advisable to use root without password.
这篇关于用户“root@localhost"的访问被拒绝(使用密码:NO)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何有效地使用窗口函数根据 N 个先前值来决定How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函数根据
在“GROUP BY"中重用选择表达式的结果;条款reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用选择表达式的结果;条款?)
Pyspark DataFrameWriter jdbc 函数的 ignore 选项是忽略整Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函数的 ig
使用 INSERT INTO table ON DUPLICATE KEY 时出错,使用 Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 时出错,使用 for 循环数组
pyspark mysql jdbc load 调用 o23.load 时发生错误 没有合pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 调用 o23.load 时发生错误 没有合适的
如何将 Apache Spark 与 MySQL 集成以将数据库表作为How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何将 Apache Spark 与 MySQL 集成以将数据库表作为