Mysql tricks

# HOW TO INSTALL MYSQL SERVICE sudo apt-get install mysql-server # HOW TO START MYSQL SERVICE sudo service mysql restart # HOW TO CONNECT TO MYSQL SERVICE sudo mysql -u [user_name] [database_name] -p # HOW TO DISCONNECT FROM MYSQL SERVICE exit # HOW TO CHANGE USER PASSWORD SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘root’); update user…