This article describes how to install MySql using officially compiled binary files in linux and how to install screenshots. this installation method is fast and easy to install! Steps for installing MySQL in Linux
This article describes how to install MySql using officially compiled binary files in linux and how to install screenshots. this installation method is fast and easy to install!
The following is a record in my work. we will introduce the installation process and screenshot of installing MySql using officially compiled binary files in linux. this installation method is fast and the installation steps are simple!
If you want to install MySql quickly, follow these steps :)!
1. download the binary installation package for mysql linux:
Address: http://dev.mysql.com/download...
Here I rename the installation package to: tingyun-mysql-5.6.22.tar.gz
Note: You can choose not to rename the file as needed.
2. unzip the installation package:
Decompress the installation package at the desired location: run the following command:
cd /opt tar –xPf tingyun-mysql-5.6.22.tar.gz
Screenshots are as follows:
5. start mysql
Go to the init. d Directory and run the following command:
cd /etc/init.d/ mysqld restart
If you do not want to restart the instance, you can manually start the instance and run the following command:
service mysqld start
You can also directly execute the following command in the mysql Directory:
/etc/init.d/mysqld restart
Screenshots are as follows:
9. test mysql after installation:
(1) Check whether mysql has been started:
You can use either of the following three commands:
netstat -tl | grep mysql ps -aux | grep mysqld netstat -lntup|grep 3306
The mysql-related process is printed on the screen and the following similar content is displayed:
cp 0 0 *:mysql *:* LISTEN
Mysql has been started successfully!
(2) to use mysql, run the following command to access mysql:
mysql -u root -p
(3) view the version:
select version();
So far, mysql has been installed and tested successfully, so you can use it with confidence :)