Ubuntu Server源码编译安装MariaDB

前端之家收集整理的这篇文章主要介绍了Ubuntu Server源码编译安装MariaDB前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
sudo apt-get update
sudo apt-get install make
sudo apt-get install cmake
sudo apt-get install automake
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install gcc
sudo apt-get install bison
sudo apt-get install g++
sudo apt-get install libncurses5-dev
sudo apt-get install libssl-dev
sudo apt-get install libjemalloc-dev

sudo groupadd MysqL
sudo useradd -g MysqL MysqL
cd /usr/local/src/mariadb-*
sudo cmake .
sudo make
sudo make install
sudo cp support-files/my-huge.cnf /usr/local/MysqL/my.cnf

cd /usr/local/MysqL
sudo chown -R root .
sudo chown -R MysqL data
sudo chgrp -R MysqL .
sudo scripts/MysqL_install_db --user=MysqL
sudo ./bin/MysqLd_safe --user=MysqL
sudo ./bin/MysqLadmin -u root password ''
sudo ./bin/MysqL -u root
原文链接:https://www.f2er.com/ubuntu/351684.html

猜你在找的Ubuntu相关文章