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
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 ./bin/MysqLadmin -u root password ''
sudo ./bin/MysqL -u root
原文链接:https://www.f2er.com/ubuntu/351684.html