mysql安装

一、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';

posted @ 2019-02-01 10:34  海平面下的我们  阅读(87)  评论(0编辑  收藏  举报