Centos7: The correct command for installing mariadb, centos7mariadb
The centos7 System of linode is used, and mariadb is used by default when mysql is installed.
However, no matter whether you use the linode official website instructions or the
[TOC]MARIADB Installing 11.6 mariadb installation 1. Download the installation package to the Unified directory/usr/local/src/[[email protected] ~]# cd /usr/local/src/[[email protected] src]#wget
Compile and install MariaDB-10.0.20 under CentOS 6.6
System Environment: CentOS6.6 (Final)MariaDB port: 3309 (because MySQL is already installed on the local machine and you do not want to delete MySQL)
# Wget http://mariadb.nethub.com.hk//mariadb-10
Finally, I completed the login method when MariaDB and MySQL coexist. At that time, I knew that the installation was successful, that is, I could not log on to MariaDB. I would like to share my experiences with you.
Finally, I completed the login
[[email protected] ~]#groupadd mariadb - g Wuyi3[email protected] ~]#useradd-u3 - g mariadb -s/sbin/nologin-d/home/mariadb mariadbDownload the binary installation package to the/root directory from MARIADB website, this article is the latest
Mysqldump backup description mysqldump is a utility used by mysql to store databases. It mainly generates an SQL script, including the CREATETABLEINSERT command required to re-create a database from scratch, and is suitable for backing up databases
Method for separate login when MariaDB and MySQL coexist
Finally, I completed the login method when MariaDB and MySQL coexist. At that time, I knew that the installation was successful, that is, I could not log on to MariaDB. I would like to share
First, the use of methods
1, separate MySQL modeDocker run-d \-E Timezone=asia/shanghai \-V/DATA/MARIADB-MASTER:/DATA/MARIADB \-E mysql_root_password=lookback \-P 3,306:3,306 \mariadb:10.0.212, Mariadb MASTERDocker run-d \-E Timezone=asia/shanghai \
Master and Slave server time to synchronize, the database version is best consistent, so as to avoid the function of processing, log read, log parsing and other anomalies.
The following three master-slave replication settings are independent.
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.