在Ubuntu系統(tǒng)中安裝MariaDB數(shù)據(jù)庫的教程
MariaDB是一個(gè)開源數(shù)據(jù)庫且100%與MySQL兼容,目標(biāo)是替代MySQL數(shù)據(jù)庫。
MariaDB的背景 :
2008年,MySQL被后來被Oracle在2010年收購的Sun Microsystems收購了。 最初被Sun公司的收購由于符合項(xiàng)目的需要而受到MySQL社區(qū)的歡呼,但是這種情緒并沒有持續(xù)太久,接下來被Oracle的收購,不幸期望遠(yuǎn)遠(yuǎn)低于預(yù)期。許多MySql的開發(fā)者離開了Sun和Oracle公司開始新的項(xiàng)目。在他們中間就有MySQL的創(chuàng)建者以及項(xiàng)目長期技術(shù)帶頭人之一的Michael ‘Monty' Widenius。Monty和他的團(tuán)隊(duì)創(chuàng)建了MySQL的一個(gè)fork版本并且命名它為MariaDB。
本篇我們會(huì)討論如何在Ubuntu上安裝MariaDB。默認(rèn)上MariaDB的包并沒有在Ubuntu倉庫中。要安裝MariaDB,我們首先要設(shè)置MariaDB倉庫。
設(shè)置 MariaDB 倉庫
$ sudo apt-get install software-properties-common $ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db $ sudo add-apt-repository 'deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu trusty main'
安裝 MariaDB :
$ sudo apt-get update $ sudo apt-get install mariadb-server
在安裝中,你會(huì)被要求設(shè)置MariaDB的root密碼。
從命令行連接到MariaDB :
linuxtechi@mail:~$ mysql -uroot -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 40 Server version: 10.0.14-MariaDB-1~trusty-log mariadb.org binary distribution Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]>
MariaDB 服務(wù)
$ sudo /etc/init.d/mysql stop $ sudo /etc/init.d/mysql start
- centos 7安裝mysql5.5和安裝 mariadb使用的命令
- CentOS 7中成功安裝MariaDB的方法教程
- ubuntu14.04LTS安裝nginx+mariaDB+php7+YAF的方法
- Linux下安裝MariaDB數(shù)據(jù)庫問題及解決方法(二進(jìn)制版本的安裝)
- mariadb的主從復(fù)制、主主復(fù)制、半同步復(fù)制配置詳解
- MariaDB配置雙主復(fù)制方案
- MariaDB(Mysql分支)my.cnf配置文件中文注釋版
- Windows Server 2016 服務(wù)器配置指南 之 MariaDB數(shù)據(jù)庫環(huán)境搭建方法
- CentOS 7.0服務(wù)器安裝配置LAMP服務(wù)器(Apache+PHP+MariaDB)
- Window7安裝MariaDB數(shù)據(jù)庫及系統(tǒng)初始化操作分析
相關(guān)文章
Windows Server 2016 服務(wù)器配置指南 之 MariaDB數(shù)據(jù)庫環(huán)境搭建方法
這篇文章主要介紹了Windows Server 2016 服務(wù)器配置指南 之 MariaDB數(shù)據(jù)庫環(huán)境搭建方法,需要的朋友可以參考下2017-08-08mariadb的主從復(fù)制、主主復(fù)制、半同步復(fù)制配置詳解
這篇文章主要詳細(xì)介紹了mariadb的主從復(fù)制、主主復(fù)制、半同步復(fù)制的概念和方法,有需要的小伙伴可以參考下2016-11-11Mysql/MariaDB啟動(dòng)時(shí)處于進(jìn)度條狀態(tài)導(dǎo)致啟動(dòng)失敗的原因及解決辦法
本文給大家介紹Mysql/MariaDB啟動(dòng)時(shí)一直處于進(jìn)度條狀態(tài),進(jìn)度條結(jié)束后提示error。究竟是什么原因呢?該怎么解決呢?跟著小編一起看看該如何解決此問題呢。2015-09-09CentOS6.7系統(tǒng)中編譯安裝MariaDB數(shù)據(jù)庫
本文主要是給大家詳細(xì)講述了如何在CentOS6.7系統(tǒng)中編譯安裝MariaDB數(shù)據(jù)庫,有需要的小伙伴可以參考下2016-11-11centos中找回MariaDB數(shù)據(jù)庫root用戶權(quán)限的方法
這篇文章主要介紹了centos中找回MariaDB數(shù)據(jù)庫root用戶權(quán)限的方法,本文寫的很意思,相信大家會(huì)眼前一亮,需要的朋友可以參考下2014-07-07關(guān)于mongoose連接mongodb重復(fù)訪問報(bào)錯(cuò)的解決辦法
這篇文章主要介紹了關(guān)于mongoose連接mongodb重復(fù)訪問報(bào)錯(cuò)的解決辦法的相關(guān)資料,需要的朋友可以參考下2016-01-01MariaDB Spider 數(shù)據(jù)庫分庫分表實(shí)踐記錄
MariaDB Server 是開源的,目前最流行的關(guān)系型數(shù)據(jù)庫之一,MariaDB 是從 Mysql 的分支開發(fā)而來,一直保持對(duì) Mysql 的兼容性,這篇文章主要介紹了MariaDB Spider 數(shù)據(jù)庫分庫分表實(shí)踐,需要的朋友可以參考下2022-02-02