服务器在WAMP服务器中没有响应(或本地MySQL服务器的套接字未正确配置) [英] The server is not responding (or the local MySQL server's socket is not correctly configured) in wamp server
本文介绍了服务器在WAMP服务器中没有响应(或本地MySQL服务器的套接字未正确配置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前在phpmyadmin中遇到此错误:
I am currently getting this error in my phpmyadmin:
我尝试了Google搜索,并尝试了每种解决方案.不幸的是,对我没有任何帮助.
I tried googling and give each solutions i found a try. Unfortunately, nothing worked for me.
顺便说一句,我正在使用wamp服务器.
By the way, I am using wamp server.
下面是我的C. \ wamp \ apps \ phpmyadmin3.2.0.1中的config.inc.php配置文件.
Below is my configuration file of config.inc.php from C:\wamp\apps\phpmyadmin3.2.0.1.
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
推荐答案
mysql的默认端口是3306,您可以尝试将其放入,然后再尝试
mysql default port is 3306 can you try putting it and then try
这篇关于服务器在WAMP服务器中没有响应(或本地MySQL服务器的套接字未正确配置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文