mysql数据库安装和配置
安装指令为:
1 2 3
| $ yum install mysql $ yum install mysql-server $ yum install mysql-devel
|
自从CentOS7之后,mysql更改为mariadb
安装命令为:
1 2 3
| $ yum install mariadb $ yum install mariadb-server $ yum install mariadb-devel
|
数据库的相关指令:
1 2 3 4 5 6 7
| systemctl start mariadb
systemctl stop mariadb
systemctl restart mariadb
systemctl enable mariadb
|