国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > 建站經(jīng)驗 > 正文

CentOS 7.2 安裝MariaDB詳細過程

2019-11-02 16:31:23
字體:
供稿:網(wǎng)友

MariaDB簡介

MariaDB數(shù)據(jù)庫管理系統(tǒng)是MySQL的一個分支,主要由開源社區(qū)在維護,采用GPL授權(quán)許可 MariaDB的目的是完全兼容MySQL,包括API和命令行,使之能輕松成為MySQL的代替品。在存儲引擎方面,使用XtraDB(英語:XtraDB)來代替MySQL的InnoDB。 MariaDB由MySQL的創(chuàng)始人Michael Widenius(英語:Michael Widenius)主導(dǎo)開發(fā),他早前曾以10億美元的價格,將自己創(chuàng)建的公司MySQL AB賣給了SUN,此后,隨著SUN被甲骨文收購,MySQL的所有權(quán)也落入Oracle的手中。MariaDB名稱來自Michael Widenius的女兒Maria的名字。

MariaDB 官網(wǎng):https://mariadb.org/

MariaDB 下載:https://downloads.mariadb.org/

MariaDB Github地址:https://github.com/MariaDB/server

安裝MariaDB 5.5

安裝MariaDB 5.5是CentOS 7的默認版本,配置數(shù)據(jù)庫服務(wù)器

[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 mariadbln -s '/usr/lib/systemd/system/mariadb.service' '/etc/systemd/system/multi-user.target.wants/mariadb.service'

初始化MariaDB

復(fù)制代碼 代碼如下:[root@linuxprobe~]# mysql_secure_installation   #和MySQL一樣,一路y

連接MariaDB

[root@linuxprobe ~]# mysql -u root -pEnter password: Welcome to the MariaDB monitor. Commands end with ; or /g.Your MariaDB connection id is 1023Server version: 5.5.50-MariaDB MariaDB ServerCopyright (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端口

# 客戶端設(shè)置[root@vdevops ~]# firewall-cmd --add-service=mysql --permanentsuccess[root@vdevops ~]# firewall-cmd --reloadsuccess

安裝phpMyAdmin

前提安裝web服務(wù)器和php,參考下面:

http://www.jb51.net/article/97434.htm

http://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 accessRequire ip 127.0.0.1 10.1.1.0/24# line 34: IP address you permit to accessRequire ip 127.0.0.1 10.1.1.o/24[root@linuxprobe ~]# systemctl restart httpd
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 海原县| 喜德县| 年辖:市辖区| 阳东县| 普宁市| 应用必备| 黄浦区| 西城区| 电白县| 普定县| 石城县| 盐山县| 金堂县| 石门县| 青神县| 类乌齐县| 休宁县| 九龙城区| 垣曲县| 绥中县| 托里县| 满洲里市| 子长县| 胶南市| 察隅县| 方山县| 寿光市| 无极县| 河南省| 景东| 从化市| 广西| 南开区| 长岛县| 阿克苏市| 栾川县| 巴彦淖尔市| 瓦房店市| 雷州市| 寿宁县| 景泰县|