Couldn't start MySQL! while starting XAMPP

前端 未结 9 1613
灰色年华
灰色年华 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

    It might be the right permissions problem. Some solutions guide you to set it to 777 which is not recommended. Try to set it to original permissions as installed. (especially after you restore from a tar without preserving the permissions)

    sudo /opt/lampp/lampp stop
    
    sudo chown nobody.root /opt/lampp/var/mysql/cdcol /opt/lampp/var/mysql/mysql        /opt/lampp/var/mysql/phpmyadmin -R
    
    sudo chown nobody.nogroup /opt/lampp/var/mysql/yourdbname -R
    
    sudo /opt/lampp/lampp start
    

提交回复
热议问题