Eu tive esse problema uma vez quando eu estava usando o Linux mint 19, eu fiz uma pesquisa no google sobre isso, mas nunca realmente entendi qual é a causa desse problema, mesmo depois que eu soube da solução.
Depois de algum tempo, percebi que existe algo chamado Unit mysql.service em conflito com o meu próprio banco de dados MySQL.
Como resolver isso?
Eu posso notar que você está rodando o Ubuntu, então os diretórios de instalação do XAMPP, MySQL ... devem ser os mesmos abaixo:
- Instale o XAMPP corretamente.
- Abra o terminal e digite o comando
sudo /opt/lampp/lampp start
para executar os serviços do XAMPP. - Abra uma nova janela de terminal e digite este comando:
sudo service mysql stop
. - Reinicie os serviços do XAMPP:
sudo /opt/lampp/lampp restart
.
Agora você pode acessar o phpMyAdmin via browser, e o seu monitor de banco de dados via Terminal.
% bl0ck_qu0te%