首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xampp/ Lampp Mysql访问

Xampp/ Lampp Mysql访问
EN

Stack Overflow用户
提问于 2016-05-09 16:36:12
回答 1查看 782关注 0票数 2

我安装在Ubuntu 16.04 LTE Xampp (lampp)上

代码语言:javascript
复制
:~$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 5.6.20-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...already running.

:~$ sudo /opt/lampp/lampp status
Version: XAMPP for Linux 5.6.20-0
Apache is running.
MySQL is not running.
ProFTPD is running.

:~$ sudo service mysql start

:~$ sudo /opt/lampp/lampp status
Version: XAMPP for Linux 5.6.20-0
Apache is running.
MySQL is not running.
ProFTPD is running.

但是当我想进入终端时有mysql -u根目录:

错误1698 (28000):拒绝用户'root'@'localhost‘的访问

如果我使用sudo mysql -u根,我可以通过终端使用mysql。

但是对于火狐http://127.0.01/phpmyadmin/

代码语言:javascript
复制
Welcome to phpMyAdmin

Error

MySQL said: Documentation
Cannot connect: invalid settings.
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
EN

回答 1

Stack Overflow用户

发布于 2016-05-26 19:09:43

我将检查/var/lib和/var/run下的权限--我有类似的情况,通过更改这些文件夹的权限来解决,然后运行$.etc/init.d/mysql start

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37120992

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档