Maria DB installation goes to directory, download package (default installation path/USR/LOCAL/SRC)
[[email protected] mysql]# cd /usr/local/src
Install the code-free binary source package, probably need to install forty or fifty minutes, early installation.
wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.6/bintar-linux-glibc_214-x86_64/mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz
Extract
[[email protected] mysql]#tar zxvf mariadb-10.2.6-linux-glibc_214-x86_64.tar.gz
Move the place and change the name to MARIADB
[[email protected] mysql]#mv mariadb-10.2.6-linux-glibc_214-x86_64 /usr/local/mariadb
Go to this directory
[[email protected] mysql]#cd /usr/local/mariadb
Change permissions
[[email protected] mysql]#./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mariadb/ --datadir=/data/mariadb
Copy configuration file
[[email protected] mysql]#cp support-files/my-small.cnf /usr/local/mariadb/my.cnf [[email protected] mysql]#cp support-files/mysql.server /etc/init.d/mariadb #启动脚本
Define Basedir and DataDir
[[email protected] mysql]#vi /usr/local/mariadb/my.cnf #在这个配置文件中,不需要改
Modify the configuration file for the startup script
Start the service
/etc/init.d/mariadb start
Failed to start again ...
Installing Apache
2018.5.24 mariadb installation, Apache installation