Install mysql in ubuntu 1204 and ubuntu
Check whether mysql is installed on the local machine
sudo netstat -tap | grep mysql
After executing the preceding command, the mysq socket is in the listening status, indicating that the installation is successful.
Install mysql
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
During the installation process, you will be prompted to enter the database administrator password (set by yourself ),
Wait until the installation is complete.
Mysql login and exit
$ mysql -u root -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 45Server version: 5.5.43-0ubuntu0.12.04.1 (Ubuntu)Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> quit;Bye
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.