Couldn't start MySQL! while starting XAMPP

前端 未结 9 1619
灰色年华
灰色年华 2021-02-05 17:33

I am new in Ubuntu, I installed XAMPP in my Ubuntu 10.04. When I start XAMPP it says MySQL couldn\'t start.

Here is my terminal ouput:

$ sudo /opt/lampp/         


        
9条回答
  •  醉话见心
    2021-02-05 17:55

    Your previous MySQL installation might be blocking your MySQL from the xampp bundle. I also had the same problem. Just uninstall the previous MySQL. Open the terminal(Ctrl ALt T) and paste the following code:

    First stop XAMPP:

    sudo /opt/lampp/lampp stop
    

    Uninstall MySQL:

    sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5
    sudo rm -rf /etc/mysql /var/lib/mysql
    sudo apt-get autoremove
    sudo apt-get autoclean
    

    Start XAMPP:

    sudo /opt/lampp/lampp start
    

提交回复
热议问题