- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我通过 XAMPP 使用 mysql 连接时不断收到以下错误,我不知道该怎么办:
那是 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 中创建用户“pma”或更改此行(mysql 的用户和密码):
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
/etc/phpmyadmin/config.inc.php
关于phpMyAdmin 错误 : mysqli_real_connect(): (HY000/1045): Access denied for user 'pma' @'localhost' (using password: NO),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46736319/
我读了doumentation但我不完全理解其中的区别。 连接对象在这方面有什么不同?我没有找到任何帖子。 我理解错了。两者都不存在标志。为什么他们不添加标志作为 mysqli_connect 的一部
PHP Timezone database is corrupt error 但是对于我的一生,我似乎无法解决这个问题,这是我当前的错误: Warning: mysqli_real_connect()
我正在尝试从 Windows 10 64 位启动 xampp v3.2.4。我收到图像 error page while connecting mysql 中显示的错误 xampp log 我从sql
我正在尝试找出内部 PHP 应用程序的瓶颈。在请求开始需要 5 秒或更长时间才能完成之前,我只能获得大约 10 个请求/秒。服务器上的 CPU 负载没有,vmstat 没有显示任何 I/O 等待或交换
mysqli_real_connect(): (HY000/2002): No such file or directory MacOS 上的 PhpMyAdmin 错误。我想要答案我真的不知道我需要
mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1),
这个问题已经有答案了: mysqli_real_connect(): (HY000/2002): No such file or directory (19 个回答) 已关闭 9 个月前。 我的 ma
我们刚刚从 php 5.4 升级到 php 5.6,使用 MySQLi 和 SSL 连接 MySQL 一切正常。 我们的连接看起来像: mysqli_real_connect($db, $host,
Mamp 服务器不会启动,似乎 apache 会,但 mysql 不会。我真的不知道我需要做什么来解决这个问题。请帮忙。 最佳答案 我也遇到过类似的事情,希望对我有帮助的,对你也有帮助。 我刚刚将 M
Expenditure Log Form Name Category '; echo $row['cat_name'] . ''; }
我在登录 phpMyAdmin 时遇到问题。 我只是安装了 xampp。当我启动 Xampp 服务器时,它显示 3306 端口错误所以我将端口从 3306 更改为 3307在 my.ini 文件和配置
这个问题已经有答案了: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/
我在使用Xampp使用DB Mysql时遇到错误,错误在phpmyadmin浏览器中显示如下: MySQL said: Documentation Cannot connect: invalid se
就在昨天,我正在处理这个 Wordpress 网页,一切正常。今天,我回来了,它不再连接“由于设置无效,无法建立连接”。 这是我的 XAMPP 控制面板: 这些是 apache 设置: $cfg['b
我的 1 个 PHP 脚本有问题,它有时会返回截断的消息。 流程: 用户调用 search.php 脚本处理请求: a 连接到数据库 b 使用 SimpleXML 类构建 XML c 将 Simple
我在 AWS 中有一个 t2.small 实例,该实例已经运行了 10 个月的大部分时间,而无需重新启动 EC2 实例/apache 服务器/mysqld服务器突然之间,截至几分钟前,它无法连接到数据
我正在从 coursera 上在线类(class),他们告诉我安装 phpmyadmin。 现在我完全是这方面的初学者,所以我无法对此进行太多研究,现在不知何故,在我安装 MySQL 和 phpmya
我通过 XAMPP 使用 mysql 连接时不断收到以下错误,我不知道该怎么办: 那是 config.inc.php 中的代码 我已经两次从命令行从 MySql 重置密码,并将更改添加到上面的代码和
这个问题已经有答案了: MySQL Error: : 'Access denied for user 'root'@'localhost' (28 个回答) 已关闭 3 年前。 我在我的计算机上启动并
我正在尝试运行 PHPUnit 来对 WordPress 插件进行单元测试,但标题中的错误一直出现。 我使用 WP-CLI 来设置单元测试,但是当我尝试运行它时 WP-CLI 也会抛出类似的错误。 我
我是一名优秀的程序员,十分优秀!