MariaDB简介
MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可 MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能轻松成为MySQL的代替品。在存储引擎方面,使用XtraDB(英语:XtraDB)来代替MySQL的InnoDB。 MariaDB由MySQL的创始人Michael Widenius(英语:Michael Widenius)主导开发,他早前曾以10亿美元的价格,将自己创建的公司MySQL AB卖给了SUN,此后,随着SUN被甲骨文收购,MySQL的所有权也落入Oracle的手中。MariaDB名称来自Michael Widenius的女儿Maria的名字。
MariaDB 官网:https://mariadb.org/
MariaDB 下载:https://downloads.mariadb.org/
MariaDB Github地址:https://github.com/MariaDB/server
安装MariaDB 5.5
安装MariaDB 5.5是CentOS 7的默认版本,配置数据库服务器
[root@linuxprobe~]# yum -y install mariadb-server [root@linuxprobe~]# vi /etc/my.cnf # add follows within [mysqld] section [mysqld] character-set-server=utf8 [root@linuxprobe~]# systemctl start mariadb [root@linuxprobe~]# systemctl enable mariadb ln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'
初始化MariaDB
复制代码 代码如下:[root@linuxprobe~]# mysql_secure_installation #和MySQL一样,一路y
连接MariaDB
[root@linuxprobe ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 1023 Server version: 5.5.50-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)]> select user,host,password from mysql.user; +-----------+-----------+-------------------------------------------+ | user | host | password | +-----------+-----------+-------------------------------------------+ | root | localhost | *F1DAE8BCDFCA7A57F246E0F834AC35830A3D640E | | root | 127.0.0.1 | *F1DAE8BCDFCA7A57F246E0F834AC35830A3D640E | | root | ::1 | *F1DAE8BCDFCA7A57F246E0F834AC35830A3D640E | +-----------+-----------+-------------------------------------------+ 5 rows in set (0.00 sec) MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | +--------------------+ 5 rows in set (0.05 sec) MariaDB [(none)]> exit; Bye
防火墙开启3306端口
# 客户端设置 [root@vdevops ~]# firewall-cmd --add-service=mysql --permanent success [root@vdevops ~]# firewall-cmd --reload success
安装phpMyAdmin
前提安装web服务器和php,参考下面:
https://www.jb51.net/article/97434.htm
https://www.jb51.net/article/97587.htm
安装phpMyAdmin
# install from EPEL [root@linuxprobe~]# yum --enablerepo=epel -y install phpMyAdmin php-mysql php-mcrypt [root@linuxprobe~]# vi /etc/httpd/conf.d/phpMyAdmin.conf # line 17: IP address you permit to access Require ip 127.0.0.1 10.1.1.0/24 # line 34: IP address you permit to access Require ip 127.0.0.1 10.1.1.o/24 [root@linuxprobe ~]# systemctl restart httpd
使用Web浏览器从客户端访问“http://(您的主机名或IP地址)/ phpmyadmin /',然后在MariaDB的用户在以下屏幕上登录。此示例使用root用户继续。
登录之后,您可以在这里操作MariaDB
MariaDB 主从复制
MariaDB 主从复制和MySQL主从复制相同,请移步到:https://www.jb51.net/article/97412.htm
安装 MariaDB 10.1
配置 CentOS SCLo源仓库
复制代码 代码如下:[root@linuxprobe ~]# yum --enablerepo=centos-sclo-rh -y install rh-mariadb101-mariadb-server
来自centos-sclo-rh的软件包安装在/ opt目录下。 要使用它,加载环境变量如下。
[root@linuxprobe ~]# scl enable rh-mariadb101 bash [root@linuxprobe ~]# mysql -V mysql Ver 15.1 Distrib 10.1.14-MariaDB, for Linux (x86_64) using EditLine wrapper [root@linuxprobe ~]# which mysql /opt/rh/rh-mariadb101/root/usr/bin/mysql
如果您希望在登录时自动启用MariaDB 10.1,请如下配置
[root@linuxprobe ~]# vi /etc/profile.d/rh-mariadb101.sh # create new #!/bin/bash source /opt/rh/rh-mariadb101/enable export X_SCLS="`scl enable rh-mariadb101 'echo $X_SCLS'`"
启用MariaDB 10.1并配置初始设置
复制代码 代码如下:[root@linuxprobe ~]# mysql_secure_installation
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
- 群星《前途海量 电影原声专辑》[FLAC/分轨][227.78MB]
- 张信哲.1992-知道新曲与精丫巨石】【WAV+CUE】
- 王翠玲.1995-ANGEL【新艺宝】【WAV+CUE】
- 景冈山.1996-我的眼里只有你【大地唱片】【WAV+CUE】
- 群星《八戒 电影原声带》[320K/MP3][188.97MB]
- 群星《我的阿勒泰 影视原声带》[320K/MP3][139.47MB]
- 纪钧瀚《胎教古典音乐 钢琴与大提琴的沉浸时光》[320K/MP3][148.91MB]
- 刘雅丽.2001-丽花皇后·EMI精选王【EMI百代】【FLAC分轨】
- 齐秦.1994-黄金十年1981-1990CHINA.TOUR.LIVE精丫上华】【WAV+CUE】
- 群星.2008-本色·百代音乐人创作专辑【EMI百代】【WAV+CUE】
- 群星.2001-同步过冬AVCD【环球】【WAV+CUE】
- 群星.2020-同步过冬2020冀待晴空【环球】【WAV+CUE】
- 沈雁.1986-四季(2012梦田复刻版)【白云唱片】【WAV+CUE】
- 纪钧瀚《胎教古典音乐 钢琴与大提琴的沉浸时光》[FLAC/分轨][257.88MB]
- 《国语老歌 怀旧篇 3CD》[WAV/分轨][1.6GB]