<legend id='HYrSD'><style id='HYrSD'><dir id='HYrSD'><q id='HYrSD'></q></dir></style></legend>
    • <bdo id='HYrSD'></bdo><ul id='HYrSD'></ul>

        <tfoot id='HYrSD'></tfoot>
        <i id='HYrSD'><tr id='HYrSD'><dt id='HYrSD'><q id='HYrSD'><span id='HYrSD'><b id='HYrSD'><form id='HYrSD'><ins id='HYrSD'></ins><ul id='HYrSD'></ul><sub id='HYrSD'></sub></form><legend id='HYrSD'></legend><bdo id='HYrSD'><pre id='HYrSD'><center id='HYrSD'></center></pre></bdo></b><th id='HYrSD'></th></span></q></dt></tr></i><div id='HYrSD'><tfoot id='HYrSD'></tfoot><dl id='HYrSD'><fieldset id='HYrSD'></fieldset></dl></div>

        <small id='HYrSD'></small><noframes id='HYrSD'>

      1. 用户“root@localhost"的访问被拒绝(使用密码:

        时间:2023-08-17
        • <tfoot id='7ZOz9'></tfoot>

              <bdo id='7ZOz9'></bdo><ul id='7ZOz9'></ul>

              • <i id='7ZOz9'><tr id='7ZOz9'><dt id='7ZOz9'><q id='7ZOz9'><span id='7ZOz9'><b id='7ZOz9'><form id='7ZOz9'><ins id='7ZOz9'></ins><ul id='7ZOz9'></ul><sub id='7ZOz9'></sub></form><legend id='7ZOz9'></legend><bdo id='7ZOz9'><pre id='7ZOz9'><center id='7ZOz9'></center></pre></bdo></b><th id='7ZOz9'></th></span></q></dt></tr></i><div id='7ZOz9'><tfoot id='7ZOz9'></tfoot><dl id='7ZOz9'><fieldset id='7ZOz9'></fieldset></dl></div>

                <legend id='7ZOz9'><style id='7ZOz9'><dir id='7ZOz9'><q id='7ZOz9'></q></dir></style></legend>

                <small id='7ZOz9'></small><noframes id='7ZOz9'>

                  <tbody id='7ZOz9'></tbody>
                  本文介绍了用户“root@localhost"的访问被拒绝(使用密码:NO)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我是 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:

                  1. 我从 Windows 服务中停止了 MySQL 服务
                  2. 打开CMD
                  3. 将位置更改为 c:\program files\mysql\bin
                  4. 执行下面的命令

                  1. I stopped the MySQL Service from Windows services
                  2. Opened CMD
                  3. Changed the location to c:\program files\mysql\bin
                  4. 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模板网!

                  上一篇:MySQL 从 CSV 数据加载 NULL 值 下一篇:从另一列计算的列?

                  相关文章

                  最新文章

                  <small id='CDdpd'></small><noframes id='CDdpd'>

                    <bdo id='CDdpd'></bdo><ul id='CDdpd'></ul>

                    1. <tfoot id='CDdpd'></tfoot>
                      <i id='CDdpd'><tr id='CDdpd'><dt id='CDdpd'><q id='CDdpd'><span id='CDdpd'><b id='CDdpd'><form id='CDdpd'><ins id='CDdpd'></ins><ul id='CDdpd'></ul><sub id='CDdpd'></sub></form><legend id='CDdpd'></legend><bdo id='CDdpd'><pre id='CDdpd'><center id='CDdpd'></center></pre></bdo></b><th id='CDdpd'></th></span></q></dt></tr></i><div id='CDdpd'><tfoot id='CDdpd'></tfoot><dl id='CDdpd'><fieldset id='CDdpd'></fieldset></dl></div>
                      <legend id='CDdpd'><style id='CDdpd'><dir id='CDdpd'><q id='CDdpd'></q></dir></style></legend>