标签:groupadd bsp span tps 创建用户 lib nodeps user pre
1.卸载系统自带的MySQL
rpm -qa|grep mysql rpm -e --nodeps *mysql* rpm -qa|grep mariadb rpm -e --nodeps mariadb
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.编辑配置文件
标签:groupadd bsp span tps 创建用户 lib nodeps user pre
原文地址:https://www.cnblogs.com/hbxZJ/p/13245733.html