久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

在Ubuntu系統中安裝MariaDB數據庫的教程

瀏覽:82日期:2023-03-30 13:21:21

MariaDB是一個開源數據庫且100%與MySQL兼容,目標是替代MySQL數據庫。
MariaDB的背景 :

2008年,MySQL被后來被Oracle在2010年收購的Sun Microsystems收購了。 最初被Sun公司的收購由于符合項目的需要而受到MySQL社區的歡呼,但是這種情緒并沒有持續太久,接下來被Oracle的收購,不幸期望遠遠低于預期。許多MySql的開發者離開了Sun和Oracle公司開始新的項目。在他們中間就有MySQL的創建者以及項目長期技術帶頭人之一的Michael ‘Monty" Widenius。Monty和他的團隊創建了MySQL的一個fork版本并且命名它為MariaDB。
本篇我們會討論如何在Ubuntu上安裝MariaDB。默認上MariaDB的包并沒有在Ubuntu倉庫中。要安裝MariaDB,我們首先要設置MariaDB倉庫。
設置 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

在安裝中,你會被要求設置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 服務

  $ sudo /etc/init.d/mysql stop  $ sudo /etc/init.d/mysql start
標簽: MariaDB
相關文章:
主站蜘蛛池模板: 盐边县| 茶陵县| 翼城县| 曲靖市| 布尔津县| 福鼎市| 洪洞县| 平凉市| 隆安县| 巴塘县| 安泽县| 济源市| 澎湖县| 合肥市| 平利县| 通城县| 瑞丽市| 龙里县| 临汾市| 绥中县| 湖口县| 方城县| 成都市| 苍溪县| 瓮安县| 灵山县| 蓝山县| 东平县| 阳春市| 长沙市| 鸡西市| 崇文区| 云龙县| 周口市| 南陵县| 云安县| 镇宁| 阳新县| 景谷| 威海市| 永靖县|