一、mysql安装时的问题:
mysql_install_db 初始化mysql系统表
chown -R mysql:mysql /var/lib/mysql 给mysql存储目录权限
VOLUME /var/lib/mysql docker容器中的解决方式
mysql_upgrade 更新系统表
二、安装mariadb
yum install mariadb mariadb-server mariadb-devel mariadb-libs
systemctl start mariadb
systemctl enable mariadb
mysqladmin -uroot pass
mysql -uroot -p123456
grant all privileges on *.* to root@'%' identified by '123456';
grant all privileges on *.* to root@'localhost' identified by '123456';