作者:乃_黄包11_753 | 来源:互联网 | 2014-05-29 08:43
前两天介绍了MariaDB,这个能让Google迁移、替代上万MySQL实例的全新开源数据库,今天,我们来看下,如何在快云的Ubuntu12.04Server版操作系统环境下安装MariaDB。想直接安装MariaDB,不能直接用apt-get,因为它依赖一个稍微老版本的libmysqlclient18。我
前两天介绍了MariaDB,这个能让Google迁移、替代上万MySQL实例的全新开源数据库,今天,我们来看下,如何在快云的Ubuntu
12.04 Server版操作系统环境下安装MariaDB。
想直接安装MariaDB,不能直接用apt-get,因为它依赖一个稍微老版本的libmysqlclient18。
我们来看看安装过程的命令都有哪些。
$ sudo -i
$ apt-get install python-software-properties
# 向源中加入库
$ apt-key adv ?recv-keys ?keyserver keyserver.ubuntu.com
0xcbcb082a1bb943db
$ add-apt-repository ‘deb
http://mirror.stshosting.co.uk/mariadb/repo/5.5/ubuntu precise
main’
# 更新源,以包括上面初始化的新库
$ apt-get update
# 接下来先安装依赖库
$ apt-get install libmysqlclient18=5.5.30-mariadb1~precise
mysql-common=5.5.30-mariadb1~precise
# 现在就可以安装MariaDB啦
$ apt-get install mariadb-server mariadb-client
本条目发布于2013 年 9 月 26 日。属于技术实战分类。作者是bryan。