Couldn't start MySQL! while starting XAMPP

前端 未结 9 1638
灰色年华
灰色年华 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 18:09

    I found the answer. First completly uninstall the lampp and then reinstall it. Before uninstalling, stop the lampp using the command:

    /opt/lampp/lampp stop
    

    and then uninstall/remove it using the command

    rm -rf /opt/lampp
    

    then reinstall it.

    0 讨论(0)
  • 2021-02-05 18:11

    This Worked For me as a Charm. [I used Ubuntu 12.04 and Xampp]

    sudo chmod 755 /opt/lampp/etc/my.cnf
    
    sudo chmod -R 777 /opt/lampp/var/mysql
    
    sudo chown -hR root:root /opt/lampp
    

    & Now Start Your Xampp

    0 讨论(0)
  • 2021-02-05 18:12

    Even I had the same issue. Always check for the error log before proceeding to find the root cause. Sometimes it could be file system space issue. In my case it was "/" file system was full. After clearing some space I was able to start the services without issues.

    Thanks, Vishnu

    0 讨论(0)
提交回复
热议问题