xml地图|网站地图|网站标签 [设为首页] [加入收藏]
当前位置: www8029com > 澳门新葡8522最新网站 > 正文

手把手教你编译安装MariaDB

时间:2019-11-18 15:45来源:澳门新葡8522最新网站
MariaDB是什么? MariaDB是MySQL的二个分层,由于Oracle有十分大大概对MySQL闭源,所以剥离了出来(MySQL前后相继被Sun、Oracle收购卡塔尔国。 不过除了作为三个Mysql的“向下代替品”,MariaD

MariaDB是什么?

MariaDB是MySQL的二个分层,由于Oracle有十分大大概对MySQL闭源,所以剥离了出来(MySQL前后相继被Sun、Oracle收购卡塔尔国。

不过除了作为三个Mysql的“向下代替品”,MariaDB包蕴的风流罗曼蒂克部分新特点使它优于MySQL。

官方网址证实

The instructions on this page will help you compile MariaDB from source. Links to more complete instructions for specific platforms can be found on the source page.

First, get a copy of the MariaDB source.

Next, prepare your system to be able to compile the source.

If you don't want to run MariaDB as yourself, then you should create amysql user. The example below uses this user.

Using cmake (MariaDB starting with 5.5)

MariaDB 5.5 and above is compiled using cmake. You can configure your build simply by running cmake without any special options, like

cmake .

but if you want it to be configured exactly as we do for our releases, use

cmake . -DBUILD_CONFIG=mysql_release

All cmake configuration options for MariaDB can be displayed with:

cmake . -LH

To build and install MariaDB after running cmake use

make
sudo make install

If the commands above fail, you can enable more compilation information by doing:

make VERBOSE=1

以上摘自:

cmake的筛选和mysql的cmake相通,可供参谋(中文文书档案卡塔尔:

测量试验实践

编译实行

#解压

tar xfz mariadb-10.0.16.tar.gz

  #步向安装目录

cd mariadb

 #配置 

cmake . -DCMAKE_INSTALL_PREFIX=/opt/waTeam/mariadb -DMYSQL_DATADIR=/home/datas/mariadb/data/ -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci

 
#编写翻译 约半个小时时间

make

 #安装

 

make install

 至此,MariaDB编写翻译安装完结。

编辑:澳门新葡8522最新网站 本文来源:手把手教你编译安装MariaDB

关键词: www8029com