38.MARIADB installation, Apache installation

Source: Internet
Author: User

First, MARIADB installation
    • If MySQL is turned on, you need to close it first
      service  mysqld stop

    • Installing MARIADB
      cd /usr/local/src wget https://mirrors.tuna.tsinghua.edu.cn/mariadb//mariadb-10.2.14/bintar-linux-glibc_214-x86_64/mariadb-10.2.14-linux-glibc_214-x86_64.tar.gztar zxvf mariadb-10.2.14-linux-glibc_214-x86_64.tar.gzmv mariadb-10.2.14-linux-glibc_214-x86_64 /usr/local/mariadbcd /usr/local/mariadb./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mariadb/ --datadir=/data/mariadbecho $?  //检查是否成功,0
 cp support-files/my-small.cnf /usr/local/mariadb/my.cnf   //由于之前安装mysql时已经用了/etc/my.cnf ,所以这里另外选一个路径 ,support-files/下有很多.cnf模板文件,基本是配置差别,这里选my-small.cnf即可 vi /usr/local/mariadb/my.cnf //定义basedir和datadir


Configuration file to modify the configuration file under Mysqld

 datadir=/data/mariadb basedir=/usr/local/mariadb

 cp support-files/mysql.server /etc/init.d/mariadb vim /etc/init.d/mariadb //定义basedir、datadir、conf以及启动参数

Define Basedir, DataDir, conf
Then start configuration in the following to modify the startup parameters
--defaults-file= "$CNF"


 /etc/init.d/mariadb start    //开启mariadb service mariadb stop       //关闭mariadb

Second, Apache installation

38.MARIADB installation, Apache installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.