MySQL数据库在终端上启动,但不在XAMPP上启动

问题描述:

我正在尝试在XAMPP上启动MySQL数据库,但它没有启动。
但是当我在终端上运行它时:

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

终端会给我成功消息。
如何检查MySQL数据库是否正在实际运行?
而且我如何在XAMPP上显示正在运行而不是已停止状态?

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?

谢谢!

但是当我在终端上运行它时:

But when I ran this on my terminal:

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

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

终端会给我成功消息。

如何检查MySQL数据库是否正在实际运行?

How can I check if MySQL Database is actually running?

如何在XAMPP上显示正在运行而不是已停止状态?

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

谢谢!

尝试使用此命令:

sudo service mysql status