centos 安装 mysql

前端之家收集整理的这篇文章主要介绍了centos 安装 mysql前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
MysqL安装如下 : yum install MysqL MysqL-server MysqL-libs MysqL-server; yum install mariadb-server -y systemctl start mariadb.service #重启命令:systemctl restart mariadb.service systemctl enable mariadb.service MysqL Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 10 Server version: 5.5.44-MariaDB MariaDB Server Copyright (c) 2000,2015,Oracle,MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> 更改密码: MysqL_secure_installation 更改端口及IP [MysqLd] port=3300 bind-address=0.0.0.0 datadir=/var/lib/MysqL

猜你在找的CentOS相关文章