码迷,mamicode.com
首页 > 数据库 > 详细

CentOS7下安装配置MariaDB

时间:2016-11-04 20:30:23      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:pre   sys   配置   set   ons   sql   mariadb   start   centos7   

参考:

  • http://www.2cto.com/os/201504/394141.html
  • http://outofmemory.cn/code-snippet/2533/mysql-create-database-specify-utf-8-coding
  • https://mariadb.com/kb/en/mariadb/setting-character-sets-and-collations/
yum install mariadb mariadb-server
systemctl status mariadb.service
systemctl enable mariadb.service
systemctl start mariadb.service
mysql_secure_installation
mysql -uroot -p
MariaDB> show variables like collation_%;
MariaDB> show variables like character_set_%;
MariaDB> set collation_database=utf8_general_ci;
MariaDB> set collation_server=utf8_general_ci;
MariaDB> show variables like collation_%;
MariaDB> show variables like character_set_%;
MariaDB> CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;

 

CentOS7下安装配置MariaDB

标签:pre   sys   配置   set   ons   sql   mariadb   start   centos7   

原文地址:http://www.cnblogs.com/flowjacky/p/6031378.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!