MySQL源码编译安装
发表于:2021-11-04 09:57:43浏览:301次
MySQL源码编译安装,初始化及相关操作
① 源码编译安装
# wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz # tar -xvf mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz # mv mysql-5.7.22-linux-glibc2.12-x86_64 /usr/local/mysql
② MySQL初始化,记录初始化密码
# mkdir /usr/local/mysql/data # useradd mysql # ./bin/mysqld --initialize --user=mysql --basedir=/usr/local/software/mysql --datadir=/usr/local/software/mysql/data # *初始化记录密码:A temporary password is generated for root@localhost: vdNip:9rdl*T
③ my.cnf配置文件操作