[mariabd]
name=MariaDBbaseurl=http://yum.mariadb.org/5.5.33a/centos6-amd64/gpgkey=http://yum.mariadb.org/RPM-GPG-KEY-MariaDBgpgcheck=1保存退出
yum install -y MariaDB-server MariaDB-client
安装完后启动服务
service mysql start
设置root用户密码
mysqladmin -u root password '123456'
设置远程登录
mysql -uroot -p123456
GRANT ALL PRIVILEGES ON *.* TO " IDENTIFIED BY "123456";
flush privileges;
配置大小写不敏感
vi /etc/my.cnf.d/server.cnf
在[mysqld]下添加
lower_case_table_names=1
重启服务
service mysql restart
配置iptables或直接关闭iptables
chkconfig iptables off
service iptables stop