问题
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.
mysqladmin -u root -p status
if mysql running it will display output uptime and queries else you get failed error
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