CentOS安装MariaDB数据库(MySQL的分支)
2017-02-13 14:45
447 查看
由于MySQL已经有闭源的趋势,所以大部分系统已经不建议使用MySQL,Mariadb是MySQL之父创建的一个MySQL分支项目,使用起来几乎一模一样。
1.安装MariaDB
2.运行数据库
3.进入数据库并创建一个production数据库
4.为production数据库创建一个远程登陆的用户
5.使用test1用户连接数据库
6.登陆成功!
1.安装MariaDB
# yum install mariadb-server mariadb-client
2.运行数据库
# systemctl start mariadb
3.进入数据库并创建一个production数据库
# mysql # MariaDB [(none)]> create database production; # MariaDB [(none)]> use production; # MariaDB [(none)]> flush privileges;
4.为production数据库创建一个远程登陆的用户
# MariaDB [(none)]> create user 'test1'@'%' identified by 'test1'; # MariaDB [(none)]> grant all privileges on production.* to test1 identified by 'test1'; # MariaDB [(none)]> flush privileges;
5.使用test1用户连接数据库
# mysql -u test1 -p Enter password: test1
6.登陆成功!
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 214 Server version: 5.5.52-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]>
相关文章推荐
- mysql 数据库集群搭建:(三)CentOS 7.2 MariaDB 10.2 galera 集群安装
- windows服务器上安装Apache+php+Mariadb(mysql的分支数据库)详细教程
- MariaDB 是一个采用 Maria 存储引擎的 MySQL 分支版本,是由原来 MySQL 的作者 Michael Widenius 创办的公司所开发的免费开源的数据库服务器。[1]
- linux(centos7)下php的安装(在上一篇帖子apache安装之后)(mysql很久以前就已安装,未再写[实际本机为mariaDB])
- 在centos6.5安装MariaDB(mysql)
- LinxuMint安装使用MariaDB(Mysql)数据库
- 解决centos下安装mysql5.6找不到my.conf与数据库表大小写识别问题
- 在 centos6.4 上编译 mysql 源代码安装数据库
- CentOS6.5安装DRBD+MariaDB+Heartbeat实现数据库集群高可用
- CentOS 7 下安装 LEMP 服务(nginx、MariaDB/MySQL 和 php)
- centos MySQL 数据库安装
- centos 7 使用 yum 安装MariaDB数据库
- CentOS 7 下安装 LEMP 服务(nginx、MariaDB/MySQL 和 php)
- 在VMware9.0上安装CentOS6.3+mysql-5.5.28数据库
- linux(centOS6) 安装Mysql 5.6.19数据库步骤、 问题以及相应的解决办法
- [置顶] CentOS 安装配置 Mysql 数据库。
- centos下Mysql-5.5.19数据库的安装
- MySQLdb安装|Centos 7 下关联 python 和 MariaDB or MySQL
- centos5.4 MySQLdb安装( MySQL centos db 数据库 MySQLdb)
- centos7 快速安装 mariadb(mysql)