首页 > 数据库技术 > 详细

CentOS7下安装配置MariaDB

时间:2016-11-04 20:27:24      阅读:214      评论:0      收藏:0      [点我收藏+]

参考:

  • 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

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

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!