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

    1. <small id='a6Vai'></small><noframes id='a6Vai'>

    2. <i id='a6Vai'><tr id='a6Vai'><dt id='a6Vai'><q id='a6Vai'><span id='a6Vai'><b id='a6Vai'><form id='a6Vai'><ins id='a6Vai'></ins><ul id='a6Vai'></ul><sub id='a6Vai'></sub></form><legend id='a6Vai'></legend><bdo id='a6Vai'><pre id='a6Vai'><center id='a6Vai'></center></pre></bdo></b><th id='a6Vai'></th></span></q></dt></tr></i><div id='a6Vai'><tfoot id='a6Vai'></tfoot><dl id='a6Vai'><fieldset id='a6Vai'></fieldset></dl></div>
    3. <tfoot id='a6Vai'></tfoot>
    4. phpMyAdmin 错误:mysqli_real_connect():(HY000/1045):用户'pma&

      phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user #39;pma#39;@#39;localhost#39; (using password: NO)(phpMyAdmin 错误:mysqli_real_connect():(HY000/1045):用户pma@localhost的访问被拒绝(使用密码:否)) - IT屋-程序员软
        <tbody id='YxlGn'></tbody>

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

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

              <bdo id='YxlGn'></bdo><ul id='YxlGn'></ul>
              <legend id='YxlGn'><style id='YxlGn'><dir id='YxlGn'><q id='YxlGn'></q></dir></style></legend>
              • 本文介绍了phpMyAdmin 错误:mysqli_real_connect():(HY000/1045):用户'pma'@'localhost'的访问被拒绝(使用密码:否)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我通过 XAMPP 连接 mysql 时不断收到以下错误,我不知道该怎么办:

                I keep getting the following errors with mysql connection through XAMPP and I don't know what to do:

                这是 config.inc.php 中的代码

                That's the code in the config.inc.php

                <?php
                /*
                 * This is needed for cookie based authentication to encrypt password in
                 * cookie
                 */
                $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE 
                SECURE COOKIE AUTH! */
                
                /*
                 * Servers configuration
                 */
                $i = 0;
                
                /*
                * First server
                */
                $i++;
                
                /* Authentication type and info */
                $cfg['Servers'][$i]['auth_type'] = 'config';
                $cfg['Servers'][$i]['user'] = 'root';
                $cfg['Servers'][$i]['password'] = '';
                $cfg['Servers'][$i]['extension'] = 'mysqli';
                $cfg['Servers'][$i]['AllowNoPassword'] = true;
                $cfg['Lang'] = '';
                
                /* Bind to the localhost ipv4 address and tcp */
                $cfg['Servers'][$i]['host'] = '127.0.0.1';
                $cfg['Servers'][$i]['connect_type'] = 'tcp';
                
                /* User for advanced features */
                $cfg['Servers'][$i]['controluser'] = 'pma';
                $cfg['Servers'][$i]['controlpass'] = '';
                
                /* Advanced phpMyAdmin features */
                $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
                $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
                $cfg['Servers'][$i]['relation'] = 'pma__relation';
                $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
                $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
                $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
                $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
                $cfg['Servers'][$i]['history'] = 'pma__history';
                $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
                $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
                $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
                $cfg['Servers'][$i]['recent'] = 'pma__recent';
                $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
                $cfg['Servers'][$i]['users'] = 'pma__users';
                $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
                $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
                $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
                $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
                $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
                $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
                $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
                
                /*
                 * End of servers configuration
                 */
                
                ?>
                

                我已经从命令行两次从 MySql 重置密码,并将更改添加到上面的代码和 php.ini 文件中,但每次都会返回错误.有什么帮助吗?

                I've already reset the password from MySql from the command line two times and added the changes to this code above and to the php.ini file, but at each time it goes back to the error. Any help?

                推荐答案

                你需要在mysql中创建用户pma"或者修改这行(mysql的用户名和密码):

                yo need create the user "pma" in mysql or change this lines(user and password for mysql):

                /* User for advanced features */
                $cfg['Servers'][$i]['controluser'] = 'pma'; 
                $cfg['Servers'][$i]['controlpass'] = '';
                

                Linux:/etc/phpmyadmin/config.inc.php

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

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

                相关文档推荐

                Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                datetime to timestamp(日期时间到时间戳)
                PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)

                <small id='4jGau'></small><noframes id='4jGau'>

                  <legend id='4jGau'><style id='4jGau'><dir id='4jGau'><q id='4jGau'></q></dir></style></legend>

                      <tbody id='4jGau'></tbody>
                    <tfoot id='4jGau'></tfoot>
                      <bdo id='4jGau'></bdo><ul id='4jGau'></ul>

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