![](/img/trans.png)
[英]PhpMyAdmin Access Denied #2002 Ubuntu, Lampp ( Xampp For ubuntu )
[英]Xampp/ Lampp Mysql access
我安装在Ubuntu 16.04 LTE Xampp(lampp)上都很好用它:
:~$ 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.
但是当我想进入TERMINAL时有mysql -u root:
ERROR 1698(28000):用户'root'@'localhost'拒绝访问
如果我使用sudo mysql -u root,一切都好,我可以通过终端使用mysql。
但对于Firefox http://127.0.01/phpmyadmin/ :
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.
我会检查/ var / lib和/ var / run下的权限我有类似的情况并通过更改这些文件夹的权限解决然后运行$。/ etc / init.d / mysql start
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.