Install MySQL and ubuntu14.04 in Ubuntu 14.04
1. Open the terminal window when updating the source list, and enter "sudo apt-getupdate" --> press enter --> "enter the password of the root user" --> press Enter. If you do not run this command and install mysql directly, an error message "you can run apt-getupdate ------" appears, causing installation failure.
2. Install mysql
Open the terminal window ", enter "sudo apt-get install mysql-servermysql-client" --> press enter --> enter "y" --> press enter --> in the "package Settings dialog box", enter "root" in mysql" user Password --> press enter --> re-enter password --> press enter, installation is complete.
3. How to determine whether mysql is successfully installed
Open the terminal window and enter "sudo service mysqlrestart" --> press enter --> If mysql is started successfully and is running, mysql is installed successfully.
4. log on to mysql
Open the terminal window and enter mysql-u root-p. --> press enter --> enter the password of the "root" user in mysql --> press enter --> log on successfully. (Set the mysql password to root in this system)