簡體   English   中英

Xampp / Lampp Mysql訪問

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM