Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRia Carmin
Courses Plus Student 11,848 PointsMySQL Workbench: cannot stop the server
When I try to stop the server in Startup / Shutdown MySQL Server, I get this error: ERROR! MySQL server PID file could not be found!
2014-10-03 15:56:21 - Server is running
2014-10-03 15:56:28 - Stopping server...
2014-10-03 15:56:28 - Executing '/usr/local/mysql/support-files/mysql.server stop'
2014-10-03 15:56:28 - Stop server: ERROR! MySQL server PID file could not be found!
2014-10-03 15:56:28 - Stop server:
2014-10-03 15:56:28 - Server stop done.
2014-10-03 15:56:28 - Checking server status...
2014-10-03 15:56:28 - MySQL server is currently running
2014-10-03 15:56:28 - Checking server status...
2014-10-03 15:56:28 - MySQL server is currently running
I'm running MySQL Workbench 6.2
Has anyone had a similar issue?
2 Answers
Dustin Matlock
33,856 PointsRia, can to see if this solution works for you?
Dustin Matlock
33,856 PointsCan you check the commands here:
Ria Carmin
Courses Plus Student 11,848 PointsAny tips on how to configure a stop command? :)
That's what I have right now /usr/local/mysql/support-files/mysql.server stop
Ria Carmin
Courses Plus Student 11,848 PointsRia Carmin
Courses Plus Student 11,848 PointsI've restarted the server and now I'm getting thisβ¦
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsHave you tried
sudo
in front of the command?Ria Carmin
Courses Plus Student 11,848 PointsRia Carmin
Courses Plus Student 11,848 PointsI can stop the server from the Terminal (woohoo!! :D) by running
sudo /usr/local/mysql/support-files/mysql.server stop
, but Workbench doesn't know sudo (or does it?β¦)Oh wellβ¦ at least it's something :)
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsRia, the
sudo
command gives you permission to do things on your system you normally wouldn't have access to. Be careful usingsudo
, as it can cause harm to your machine if you run the wrong commands.More information can be found about the console in the Treehouse course Console Foundations if you're interested.