0%
安装MariaDB10.2
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
[root@centos7 yum.repos.d] [mariadb] name = MariaDB
baseurl = http://mirrors.shu.edu.cn/mariadb/yum/10.2/centos7-amd64/ gpgkey=http://mirrors.shu.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1
|
升级数据库
重置root密码
1 2 3 4 5 6 7 8 9
|
MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> quit;
|