MySQL Database starts on Terminal But not on XAMPP

六眼飞鱼酱① 提交于 2020-03-05 07:21:33

问题


I am trying to start MySQL Database on XAMPP, and it doesn't start. But when I ran this on my terminal:

sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

The terminal gives me a success message. How can I check if MySQL Database is actually running? And how can I make the status on XAMPP say Running and not Stopped?

Thank you!

But when I ran this on my terminal:

sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start

The terminal gives me a success message.

How can I check if MySQL Database is actually running?

And how can I make the status on XAMPP say Running and not Stopped?

Thank you!


回答1:


try to use this command:

sudo service mysql status



回答2:


Use one of the commands to check mysql running on Linux.

  1. mysqladmin -u root -p status

    if mysql running it will display output uptime and queries else you get failed error

  2. sudo service mysqld status OR # /etc/init.d/mysqld status

    For Ubuntu use service mysql status



来源:https://stackoverflow.com/questions/58316111/mysql-database-starts-on-terminal-but-not-on-xampp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!