Ubuntu安装MariaDB 10

来源:互联网 发布:淘宝卖家怎么处理退款 编辑:程序博客网 时间:2024/06/10 08:44

        MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将MySQL闭源的潜在风险,因此社区采用分支的方式来避开这个风险。 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的名字。

        这个项目的更多的代码都改编于 MySQL 6.0,例如 “pool of threads”功能提供解决多数据连接问题。MariaDB 5.1.41 RC可以到这里下载,32位和64位已编译Linux版本,还包括源代码包。MariaDB基于GPL 2.0发布。具体信息见链接:
点击打开链接https://downloads.mariadb.org/mariadb/repositories/#mirror=tsinghua&distro=Ubuntu&distro_release=trusty&version=10.0
Ubuntu下安装步骤如下

Here are the commands to run to install MariaDB on your Ubuntu system:

sudo apt-get install software-properties-commonsudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943dbsudo add-apt-repository 'deb http://mirrors.tuna.tsinghua.edu.cn/mariadb/repo/10.0/ubuntu trusty main'
Once the key is imported and the repository added you can install MariaDB with:

sudo apt-get updatesudo apt-get install mariadb-server

See Installing MariaDB .deb Files for more information and for instructions on installing MariaDB Galera Cluster.

You can also create a custom MariaDB sources.list file. To do so, after importing the signing key as outlined above, copy and paste the following into a file under/etc/apt/sources.list.d/(we suggest naming the file MariaDB.list or something similar), or add it to the bottom of your/etc/apt/sources.list file.

# MariaDB 10.0 repository list - created 2014-04-08 06:28 UTC# http://mariadb.org/mariadb/repositories/deb http://mirrors.tuna.tsinghua.edu.cn/mariadb/repo/10.0/ubuntu trusty maindeb-src http://mirrors.tuna.tsinghua.edu.cn/mariadb/repo/10.0/ubuntu trusty main


0 0
原创粉丝点击