#HashMap# 2022-01-26 22:55:04 阅读数:356
(1)mysql Installation and previous tomcat equally , First of all, use Filezila Transfer the compressed packet to /usr/local/tmp In file
(2) hold /usr/local/tmp Compressed package in tar zxvf mysql-5.6.31-linux-glibc2.5-x86_64.tar.gz Command compression , The compressed file name is mysql-5.6.31-linux-glibc2.5-x86_64
(3) use cp mysql-5.6.31-linux-glibc2.5-x86_64 /usr/local/mysql Command copy file
(1)mysql You need to create your own user groups and users
(2) Modify permission settings
Be careful : Must be in mysql Under the table of contents , Don't forget to add ’.’
(3) Delete my.cnf file ,rm /etc/my.cnf
(4) Initialize database ,./scripts/mysql install db --user=mysql
(5) Copy my.cnf file
cp support-files/my-default.cnf /etc/my.cnf
(6) Copy mysql.server file
cp support-files/my.server /etc/rc.d/init.d/my.server
(7) Start the service ,service mysql start
(1) Establish a soft connection
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
(2) Get into mysql, To operate mysql -u root -p
mysql Installation package :
link :https://pan.baidu.com/s/151eDec6Cg9TjASh5cqUqDA
Extraction code :s5mu
copyright:author[#HashMap#],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/01/202201262255025444.html