来源: 最后更新:23-07-16 12:11:01
1、下载MariaDB(mariadb-5.5.31.tar.gz)
[root@zabbix_server opt]# wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz
2、安装MariaDB
[root@zabbix_server opt]# tar xzvf mariadb-5.5.31.tar.gz
[root@zabbix_server cmake-2.8.5]# cd cmake-2.8.5
[root@zabbix_server cmake-2.8.5]# ./bootstrap
[root@zabbix_server cmake-2.8.5]# make
[root@zabbix_server cmake-2.8.5]# make install
3、安装MariaDB所需软件包
yum install libaio-devel -y
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mariamysql
4、查看mariadb是否安装成功
[root@zabbix_server mariadb-5.5.31]# ps -ef | grep mysql
root 9010 17846 0 16:08 pts/0 00:00:00 /bin/sh /usr/local/mariamysql/bin/mysqld_safe --user=mysql
mysql 9459 9010 0 16:08 pts/0 00:00:01 /usr/local/mariamysql/bin/mysqld --basedir=/usr/local/mariamysql --datadir=/data/database --plugin-dir=/usr/local/mariamysql/lib/plugin --user=mysql --log-error=/data/database/zabbix_server.err --open-files-limit=40960 --pid-file=zabbix_server.pid --socket=/data/database/mysql.sock --port=3306
[root@zabbix_server mariadb-5.5.31]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 41
Server version: 5.5.31-MariaDB-log MariaDB Server
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
root@zabbix ((none)) > show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| zabbix |
+--------------------+
3 rows in set (0.00 sec)
root@zabbix ((none)) >
帮同学化妆最高日入近千 帮朋友化妆帮同学化妆最高日入近千?浙江大二女生冲上热搜,彩妆,妆容,模特,王
2023吉林省紧缺急需职业工种目录政策解读 2024张杰上海演唱会启东直通车专线时间+票价 马龙谢幕,孙颖莎显示统治力,林诗栋紧追王楚钦,国乒新奥运周期竞争已启动 全世界都被吓了一跳 吓死全世界