To stop a MySQL server instance on an Ubuntu linux install via the command line is as simple as entering:
sudo /etc/init.d/mysql stop
Alternatively, to start a MySQL server instance you can simply submit a start command like so:
sudo /etc/init.d/mysql start
Incidentally, if you want to check on the status of a currently running MySQL server instance, you can make use of the status switch:
sudo /etc/init.d/mysql status
Oh, and if you want to install MySQL on the ubuntu machine, simply make use of the usual apt-get suspect and enter:
sudo apt-get install mysql-server
Useful little things to remember if you are working in a terminal only environment, don’t you think? :P
You might also enjoy:
-
MySQL gets installed with a default root account under the username "root". Sometimes the system will allow you to install a root account without a password ...
-
PHPMyAdmin is a useful web-based management tool for your MySQL server running as part of your LAMP stack. To install this tool in Ubuntu turns out to be pr ...
-
LAMP (Linux, Apache, mySQL and PHP) is a popular open source web development platform that uses Linux as its operating system, Apache as the web server, myS ...
-
To delete a user account from a MySQL server instance, we need to make use of a DROP USER call to the mysql.user table. First, fire up MySQL in your ter ...
-
From day one, the problem with database-driven applications is of course that the potential for two separate scripts to overwrite data being used by one ano ...