http://mariadb.org/

1.2.1. CentOS YUM 安装 MariaDB

cat >> /etc/yum.repos.d/MariaDB.repo <<EOF
# MariaDB 5.5 CentOS repository list - created 2013-12-04 02:17 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
# yum search MariaDB | grep MariaDB
============================= N/S Matched: MariaDB =============================
MariaDB-Galera-server.x86_64 : MariaDB: a very fast and robust SQL database
MariaDB-client.x86_64 : MariaDB: a very fast and robust SQL database server
MariaDB-common.x86_64 : MariaDB: a very fast and robust SQL database server
MariaDB-compat.x86_64 : MariaDB: a very fast and robust SQL database server
MariaDB-devel.x86_64 : MariaDB: a very fast and robust SQL database server
MariaDB-server.x86_64 : MariaDB: a very fast and robust SQL database server
MariaDB-shared.x86_64 : MariaDB: a very fast and robust SQL database server
MariaDB-test.x86_64 : MariaDB: a very fast and robust SQL database server

安装数据库

# yum install -y MariaDB-server MariaDB-client

指定默认root密码

# mysqladmin -u root password 'chen'

数据库安全配置

# /usr/bin/mysql_secure_installation
/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not foundNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.Enter current password for root (enter for none):
OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.You already have a root password set, so you can safely answer 'n'.Change the root password? [Y/n]
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..... Success!By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.Remove anonymous users? [Y/n]... Success!Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n]... Success!By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.Remove test database and access to it? [Y/n]- Dropping test database...... Success!- Removing privileges on test database...... Success!Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.Reload privilege tables now? [Y/n]... Success!Cleaning up...All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.Thanks for using MariaDB!

进入数据库

# mysql -uroot -pchen
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 5.5.34-MariaDB MariaDB ServerCopyright (c) 2000, 2013, Oracle, Monty Program Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)MariaDB [(none)]> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
MariaDB [mysql]>

使用上与MySQL并无差异

1.2.2. MariaDB Audit Plugin

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

1.2. MariaDB相关推荐

  1. debian10 mariadb安装

    安装 apt-get install mariadb-server 修改配置 vim /etc/mysql/mariadb.conf.d/50-server.cnf 修改允许所有IP连接数据库 bin ...

  2. mysql/mariadb centos7 修改root用户密码及配置参数

    一.修改用户密码,以root为例 1. 知道root密码,需要修改 方法a. 登入数据库来修改 # mysql -uroot -p /*输入密码进入*/ /*第一个方式:直接编辑数据库字段*/ Mar ...

  3. centeos7安装mariadb

    1 centeos7安装mariadb yum -y install mariadb mariadb-server 2 启动mariadb服务 systemctl start mariadb.serv ...

  4. mariadb(第二章)增删改 MariaDB 数据类型

    MariaDB 数据类型 MariaDB数据类型可以分为数字,日期和时间以及字符串值. 使用数据类型的原则:够用就行, 尽量使用范围小的,而不用大的 常用的数据类型 整数:int, bit 小数:de ...

  5. 数据库MySQL/mariadb知识点——索引

    索引 ​ 索引是特殊数据结构:定义在查找时作为查找条件的字段,索引实现在存储引擎. 索引可以降低服务需要扫描的数据量,减少了IO次数 索引可以帮助服务器避免排序和使用临时表 索引可以帮助将随机I/O转 ...

  6. mariadb转mysql_MariaDB/MySQL备份和恢复(二):数据导入、导出

    1.导出.导入数据 load data infile和select into outfile语句是配套的.select into outfile语句是将检索出来的数据按格式导出到文件中,数据迁移跨数据 ...

  7. upgrade lnmpa php.sh,LNMP 状态管理命令说明及Nginx、MySQL/MariaDB、PHP升级教程

    状态管理命令分 LNmp状态管理命令 和 LNmpA状态管理命令,LNMPA代表的是Linux下Nginx.MySQL.PHP.Apache这种网站服务器架构,是结合LAMP与LNMP各自的优点而产生 ...

  8. mariadb 内存占用优化

    本文由云+社区发表 作者:工程师小熊 摘要:我们在使用mariadb的时候发现有时候不能启动起来,在使用过程中mariadb占用的内存很大,在这里学习下mariadb与内存相关的配置项,对mariad ...

  9. MariaDB 基金会 CEO 宣布将于 10 月 1 日卸任

    开发四年只会写业务代码,分布式高并发都不会还做程序员?   近日,MariaDB 基金会 CEO Otto Kekäläinen 在官网宣布自己将在今年 10 月 1 日正式卸任 CEO,转而退居后线 ...

  10. 数据仓库的未来 MariaDB ColumnStore

    MariaDB ColumnStore 简介 Part1:写在最前 MariaDB ColumnStore is the future of data warehousing. ColumnStore ...

最新文章

  1. 在featureDataset和workspace下創建featureclass
  2. 教育场景下的实时音频解决方案
  3. 关于调试过程中单片机复位的几点心得与体会
  4. XCTF-高手进阶区:php_rce
  5. linux如何用cat看一行数据库,linux的cat命令
  6. ConcurrentProgramming:ThreadLocal(jdk8)
  7. 安徽省2012年下半年计算机水平考试(二级 c语言程序设计),安徽省计算机等级级考试真题C语言2012年12月.doc...
  8. rds mysql_Amazon RDS上MySQL
  9. IDEA 部署 Java Web 应用为 war 包
  10. 2019最新大数据分析智能BI Tableau教程视频(18章节)
  11. dspscififo历程_DSP2812 SCI FIFO模式调试心得
  12. 安卓模拟器安装教程_雷电模拟器4.0去广告清爽版,详细安装教程,超简单!
  13. 数据采集(三):用XPath爬取腾讯新闻
  14. C语言使用 gzip 算法压缩数据
  15. 面试官灵魂三问:什么是SOA?什么是微服务?SOA和微服务有什么区别?
  16. Mac 配置远程服务器 - 免密登陆
  17. Crypto one-time-pad
  18. Eclipse开发环境搭建
  19. 语雀实现收藏网页的功能(借助印象笔记)
  20. 2017新加坡出差经历

热门文章

  1. java接口自动化(三) - 手工接口测试到自动化框架设计之鸟枪换炮
  2. 字符串匹配KMP算法设计C语言,KMP字符串匹配算法笔记
  3. Echarts.js+jquery.js+china.js实现中国疫情地图
  4. python安装依赖比较慢的解决方法
  5. nginx 实现负载均衡
  6. 【GWT系列】 Speed Tracer 入门
  7. 三坐标测量圆直径_基于三坐标测量机的渐开线齿轮,测量方法
  8. centos6 java安装_CentOS6下安装Java JDK8
  9. oracle从光盘启动不了,oracle install
  10. Java Socket缓冲区