<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)'

      #39;Access denied for user #39;root#39;@#39;localhost#39; (using password: NO)#39;(用户root@localhost的访问被拒绝(使用密码:NO))

        <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)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to delete duplicate records in mysql database?(如何删除mysql数据库中的重复记录?)
                Python Pandas write to sql with NaN values(Python Pandas 使用 NaN 值写入 sql)
                MySQL Insert amp; Joins(MySQL 插入 amp;加入)
                MySQL concat() to create column names to be used in a query?(MySQL concat() 创建要在查询中使用的列名?)
                NodeJS responded MySQL timezone is different when I fetch directly from MySQL(当我直接从 MySQL 获取时,NodeJS 响应 MySQL 时区不同)
                WHERE datetime older than some time (eg. 15 minutes)(WHERE 日期时间早于某个时间(例如 15 分钟))

                  <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>
                      <tbody id='0ZrjZ'></tbody>

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