current position:Home>MySQL installation and configuration in Linux

MySQL installation and configuration in Linux

2022-01-26 22:55:04 #HashMap#

One .Linux in mysql install

(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

Two .Linux in mysql To configure

(1)mysql You need to create your own user groups and users
 Insert picture description here

(2) Modify permission settings
Be careful : Must be in mysql Under the table of contents , Don't forget to add ’.’
 Insert picture description here
(3) Delete my.cnf file ,rm /etc/my.cnf
 Insert picture description here
(4) Initialize database ,./scripts/mysql install db --user=mysql
 Insert picture description here
(5) Copy my.cnf file
cp support-files/my-default.cnf /etc/my.cnf
 Insert picture description here
(6) Copy mysql.server file
cp support-files/my.server /etc/rc.d/init.d/my.server
 Insert picture description here
(7) Start the service ,service mysql start
 Insert picture description here

3、 ... and .mysql The operation of

(1) Establish a soft connection
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
 Insert picture description here
(2) Get into mysql, To operate mysql -u root -p

mysql Installation package :
link :https://pan.baidu.com/s/151eDec6Cg9TjASh5cqUqDA
Extraction code :s5mu

copyright notice
author[#HashMap#],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201262255025444.html

Random recommended