【发布时间】:2012-06-26 07:19:33
【问题描述】:
每次我尝试访问我的 localhost/phpmyadmin 时都会出现此错误 ---> 错误 MySQL 说:
2002 - 服务器没有响应(或本地 MySQL 服务器的套接字配置不正确)
配置中定义的 controluser 连接失败。
我真的需要你的帮助,我一无所知。下面是我的 config.inc.php 文件 非常感谢您的帮助!
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp';
/*
*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'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
/* 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';
/*
* End of servers configuration
*/
?>
【问题讨论】:
-
你的服务器上运行的是Mysql服务吗?
-
不,每次我启动它大约 3 秒后它就会停止。对我能做什么有什么建议吗?
-
phpMyAdmin 似乎没有问题,请检查您的 MySQL 日志 (xampp\mysql\data\mysql_error.log) 或尝试在命令行中运行 mysql.exe 并检查它的内容。
-
由于某种原因,我在我的电脑上找不到 mysql.exe,我是不是要单独安装 mysql 和 xampp??
标签: php