MySQL Database cannot start on XAMPP for Mac

前端 未结 8 1024
执笔经年
执笔经年 2021-02-08 13:03

All of a sudden I am encountering this problem on my mac. I cant start my MySQL Database. I can only start my ProFTPD and Apache Web Server.

This is the application log:

8条回答
  •  眼角桃花
    2021-02-08 13:46

    If mysql is not starting in xampp, it might be a port conflict issue. Mysql run by default on port 3306. you need to check if another application is occupying that port. use following command to check app occupying a port

    lsof -nP -i4TCP:3306
    

    if you find an application occupying that port, stop the application and restart xampp. As an alternative, you can go to php.ini file or click configure in the dropdown and change the mysql port to 3307

提交回复
热议问题