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

centos7 Mariadb安装

时间:2017-03-02 10:51:48      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:char   数据   storage   adb   word   table   ase   创建数据库   mysqld   

yum install mariadb-server mariadb -y

修改配置:

[mysqld]

default-storage-engine = innodb

innodb_file_per_table

character-set-server = utf8

collation-server = utf8_general_ci

init-connect = ‘SET NAMES utf8‘

?

systemctl start mariadb

systemctl enable mariadb

创建数据库

CREATE DATABASE IF NOT EXISTS cattle COLLATE = ‘utf8_general_ci‘ CHARACTER SET = ‘utf8‘;

GRANT ALL ON cattle.* TO ‘cattle‘@‘%‘ IDENTIFIED BY ‘cattle‘;

GRANT ALL ON cattle.* TO ‘cattle‘@‘localhost‘ IDENTIFIED BY ‘cattle‘;

?

--db-host IP or hostname of MySQL server

--db-port port of MySQL server (default: 3306)

--db-user username for MySQL login (default: cattle)

--db-pass password for MySQL login (default: cattle)

--db-name MySQL database name to use (default: cattle)

centos7 Mariadb安装

标签:char   数据   storage   adb   word   table   ase   创建数据库   mysqld   

原文地址:http://www.cnblogs.com/iiiiher/p/6489207.html

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