Ubuntu install MySQL
Girlfriend to do Linux level three project, but did not install a good night MySQL, I know she does not want to disturb me, do not want to trouble me. For her this kind of kindness sincerely feel happy, she must be able to enter the name of the enterprise, at least do not understand the determination to not sleep is worthy of praise.
We installed on Ubuntu only need three command on the line, because at that time I installed the relatively hasty, so did not come anxious, everyone forgive ha
1 sudo apt-get install mysql-server
After executing the command, he will download the source, it may not be successful for the first time, but once again, no problem, in the middle may want to determine the input of a Y, but also enter a root password.
2 sudo apt-get install mysql-client
Seems to remember that I do not remember, the implementation of the line
3 sudo apt-get install Libmysqlclient-dev
Proceed until the installation is complete.
Let's sign in.
Using the command mysql-u root-p
Enter password
Then enter the MySQL command show databases;
Note the semicolon, if there is no mistake, OK.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| Information_schema |
| MySQL |
| Performance_schema |
+--------------------+
3 Rows in Set (0.00 sec)
Thanks, girlfriend.
Ubuntu install MySQL