Install MySQL
Via apt-getFull Script:
sudo apt-get update
sudo apt-get install mysql-server-5.5
sudo mysql_secure_installation #recommended in production.
sudo mysql_install_db
sudo mysqladmin -uroot -ppass version
mysql -uroot -ppass
Explain:
- update apt-get just in case.
-
Installation.
while setup you will asked to create a password for mysql root account.
this password is very important.
Mysql root account is deferent than Ubuntu root account - This script is optional .. normal installation will allow remote login for root user
and some other less secure options.
if you want to prevent or close this options then run this command. - to initialize data directory .. only fro versions earlier than 5.7.6
- To see status of mysql .. change pass by your mysql root password.
- To access mysql