Is MySQL server installed by default?
Solution 1:
The package that needs to be installed for the MySQL server is named mysql-server
. If /etc/init.d/mysql
does not exist, the MySQL server is not installed. After installing it using sudo apt-get install mysql-server
, it will be started automatically (after the installation and on startup).
Ubuntu has migrated from traditional initscripts to Upstart. If you run /etc/init.d/mysql [action]
you'll get a notice.
To stop MySQL, run:
sudo stop mysql
To start it:
sudo start mysql