简体   繁体   English

linux-xampp-mysql:Mysql数据库无法启动

[英]linux-xampp-mysql : Mysql database won't start

I have installed XAMPP-5.6.3-0 in my Ubuntu 14.04 64 bit machine. 我已经在Ubuntu 14.04 64位计算机上安装了XAMPP-5.6.3-0。 Now Mysql Database is not running. 现在Mysql数据库未运行。

When I'm trying to open phpmyadmin the following error is shown : 当我尝试打开phpmyadmin ,显示以下错误:

Welcome to phpMyAdmin 欢迎使用phpMyAdmin

Error 错误

MySQL said: Documentation MySQL说:文档

2002 - No such file or directory 2002-没有这样的文件或目录

The server is not responding (or the local server's socket is not correctly configured). 服务器没有响应(或未正确配置本地服务器的套接字)。 Connection for controluser as defined in your configuration failed. 在配置中定义的controluser的连接失败。

The following snapshots might help: 以下快照可能会有所帮助: phpMyadmin错误Xampp GUI

All the web pages stored inside /opt/lampp/htdocs are accessed properly. 可以正确访问/ opt / lampp / htdocs中存储的所有网页。

The contents of my.cnf are Mysql Configuration my.cnf的内容是Mysql Configuration

try to Open the php.ini file and find this line: 尝试打开php.ini文件并找到以下行:

mysql.default_socket

And change it to 并将其更改为

mysql.default_socket = /path/to/mysql.sock

try to sit path to /var/run/mysqld 尝试坐在/ var / run / mysqld的路径

mysql.default_socket = /var/run/mysqld/mysql.sock

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM