Install MySQL software (green version)
① Unpacking Packages
② Change the folder name to MySQL and copy it to the/usr/local folder
③ use the CD command to enter the/usr/local/mysql folder and use Ls–l to view
After viewing it, the file owner and the group that owns the file are shown 8972, what is it?
A: Since the developer is packaging MySQL, the system automatically saves the file owner and the owning group, if the owner and the owning group are not found in the current Linux operating system, it automatically displays 8972.
④mysql installation Detailed steps
First step: Groupadd MySQL, add MySQL Group
Step two: Useradd???? -G???? MySQL (group name) MySQL (user name), create MySQL user and assign to MySQL group
Step three: Initialize the base table of the database
Initializing a data table with the scripts/mysql_install_db--user=mysql directive
The post-run effect is as follows:
Fourth step: Chown???? -R???? Root. (I'm a dot), change all file owners in the current directory to root
Fifth step: chown-r mysql data, change the owner of the data folder to MySQL
Sixth step: Chgrp???? -R???? Mysql????. (I'm a dot), change the file's owning group to MySQL
Seventh Step: Bin/mysqld_safe--user=mysql & (running in the background), start MySQL database
⑤ using Bin/mysql–uroot to start MySQL software
⑥ password for MySQL (easy to follow PHP connection)
installing MySQL Software