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

    <tfoot id='EceKV'></tfoot><legend id='EceKV'><style id='EceKV'><dir id='EceKV'><q id='EceKV'></q></dir></style></legend>

      • <bdo id='EceKV'></bdo><ul id='EceKV'></ul>
    1. <small id='EceKV'></small><noframes id='EceKV'>

      '用户'root'@'localhost'的访问被拒绝(使用密码:NO)'

      时间:2023-06-26

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

        <legend id='CWVtl'><style id='CWVtl'><dir id='CWVtl'><q id='CWVtl'></q></dir></style></legend>
            <tbody id='CWVtl'></tbody>

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

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

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

                问题描述

                我正在尝试设置用户 root 的密码,但出现以下错误,知道吗?

                I'm trying to set the password of the user root but I'm gettin the error below, any idea?

                +----------------------------------------------------------------------------------------------------------------------------------------+
                | Grants for root@localhost                                                                                                              |
                +----------------------------------------------------------------------------------------------------------------------------------------+
                | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*436576511F70A4E3B305E1AB8E209851945D8687' WITH GRANT OPTION |
                +----------------------------------------------------------------------------------------------------------------------------------------+
                1 row in set (0.00 sec)
                
                
                mysql> exit
                Bye
                root@tirengarfio:/var/www/rs2# mysqladmin -u root password foo,
                mysqladmin: connect to server at 'localhost' failed
                error: 'Access denied for user 'root'@'localhost' (using password: NO)'
                

                推荐答案

                $ mysqladmin -u root -p password
                Enter password: 
                New password: 
                Confirm new password:
                

                password 应按字面输入.这是一个命令.您不必将 password 替换为您的实际密码.

                password is to be typed literally. It's a command. You don't have to substitute password with your actual password.

                这篇关于'用户'root'@'localhost'的访问被拒绝(使用密码:NO)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Mysql选择不在表中的位置 下一篇:何时在 MySQL 表中使用 NULL

                相关文章

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

                <tfoot id='0ZrjZ'></tfoot>
              • <legend id='0ZrjZ'><style id='0ZrjZ'><dir id='0ZrjZ'><q id='0ZrjZ'></q></dir></style></legend>

                1. <small id='0ZrjZ'></small><noframes id='0ZrjZ'>