1. Unzip the file to the current directory Command: tar -zxvf mysql....tar.gz 2. Move the unzipped folder to the target directory and rename it mysql Command: mv mysql-version number/usr/local/mysql Add the system mysql group and mysql user Add the system mysql group Add mysql user After adding, you can view the available ID in mysql Then enter the /usr/local/mysql directory Set the mysql user group's permissions to operate the folder Command: Check if /etc/my.cnf exists, if so delete it View command: ls /etc/my.cnf Delete command: rm /etc/my.cnf Initialize the database Command: Note: If you execute this command, the following error is reported Need to install yum package Command: After the installation is complete, re-execute the initialization database command Then go to the support-files folder Copy my-default.cnf to /etc and rename it to my.cnf Command: Copy the startup file mysql.server to /etc/rc.d/init.d and rename it to mysql Command: Then configure mysql to start automatically Enter the /etc/init.d directory Give mysql executable permissions Command: Adding Services Command: View Service List Command: If you see the mysql service and 3, 4, and 5 are all on, then it is successful. If they are off, type Restart your computer Check the monitor to see if the service is started Command: Change the user's ability to remotely operate the database Authorization Operation Command: Refresh Authorization flush privileges; remote connection Deleting other users Summarize The above is the editor's introduction to the installation and configuration of the unzipped version of MySQL database under the Linux system. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: A detailed discussion of evaluation strategies in JavaScript
>>: Solve the problem that VMWare cannot display in full screen after installing Mac system
I finished learning SQL by myself not long ago, a...
Declaring variables Setting Global Variables set ...
Table of contents 1. Basics 2. Problem Descriptio...
HTTP Header Explanation 1. Accept: Tells the web s...
Recently, due to the need to test security produc...
Here we take the Jenkins container as an example ...
The full name of SSH is Secure SHell. By using SS...
Background color and transparency settings As sho...
Table of contents Business Logic Data table struc...
Table of contents principle Network environment p...
VMware12.0+Ubuntu16.04+MySQL5.7.22 installation t...
Table of contents Classic approach question Furth...
When I first taught myself web development, there...
I have seen a lot of MySQL-related syntax recentl...
01. Command Overview The seq command is used to g...