时间:2021-07-01 10:21:17 帮助过:22人阅读
2.安装MySQL8.0
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-8.0.15-linux-glibc2.12-x86_64.tar tar -xvf mysql-8.0.15-linux-glibc2.12-x86_64.tar rm -f mysql-8.0.15-linux-glibc2.12-x86_64.tar xz -d mysql-8.0.15-linux-glibc2.12-x86_64.tar.xz tar -xvf mysql-8.0.15-linux-glibc2.12-x86_64.tar mv mysql-8.0.15-linux-glibc2.12-x86_64 /usr/local/mysql mkdir /data/mysql3306 -p
3.配置环境变量
vim /etc/profile PATH=$PATH:/usr/local/mysql/bin
4.创建用户组并授权目录
groupadd mysql useradd -r -g mysql -s /bin/false mysql chown mysql.mysql -R /usr/local/mysql chown mysql.mysql -R /data/mysql3306/
5.编辑配置文件
MySQL8.0安装
标签:groupadd bsp span tps 创建用户 lib nodeps user pre