MARIADB, as a branch of MySQL, is already widely used in open source projects, such as hot OpenStack, so the cluster deployment is essential to ensure high availability of the service while increasing the load capacity of the system.MariaDB Galera Cluster IntroductionThe MARIADB cluster is a MARIADB synchronous multi-host cluster. It only supports the XTRADB/INNO
Mariadb-10.1.13-linux-x86_64/mysqlNote: ln Soft connect is used for multiple version upgrade downgrades. ~]# cd /usr/local/mysql ~]# chown -R root:mysql ./* ~]# mkdir /mysqldata # 备注:数据库存放目录。 ~]# chown -R mysql.mysql /mysqldata # 备注:修改 /mysqldata 权限便于 mysql 进程访问。(3): Add to System boot services, environment variables, view the order of the configuration files in effect, and modify the configuration fi
"title=" image "border=" 0 "alt=" image "src=" http://img1.51cto.com/attachment/201408/13/ 6249823_1407898114merx.png "width=" 498 "height=" 126 "/>
Re-CD back to the/usr/local directory, to the downloaded mariadb ... the name of the package is renamed, because it requires MySQL.
650) this.width=650; "Style=" border-right-0px; border-top-width:0px; border-bottom-width:0px; border-left-width:0px "title=" image "border=" 0 "alt=" image "src=" htt
Slave2
192.168.100.158
Db4
4
Virtual IP address (VIP):
IP
role
192.168.100.170
Writer
192.168.100.171
Reader
192.168.100.172
Reader
Experimental deployment of one, in Master1, Master2, slave1, Slave2 installed MARIADB, the experiment with mariadb instead of MySQL, the
Centos 6.5 Build PHP Environment (NGINX+MARIADB+PHP7), Centosnginx
PHP is a piece of cake, the first time to write Bolg, there is nothing wrong, but also ask you to greatly point out
1.mariaDb
vim/etc/Yum. Repos.d/mariadb.repo
[mariadb]= mariadb= http://yum.mariadb.org/5.5/centos5-x86gpgkey=https:// YUM.MARIADB.ORG/RP
centos7.3 install MARIADB by yum modeInstall by installing a package groupYum GroupInfo mariadb mariadb-clientYum Groupinstall mariadb mariadb-clientStart the service, the first boot time is a bit longSystemctl Start mariadbSystemctl Status mariadbSystemctl Enable MARIADBSec
Lab Environment :
IP Address
Description
192.168.5.181
CentOS7 system, Base source installed MARIADB, as the FTP server, as the authentication service side
192.168.5.121
CentOS6 system, as an FTP client
Installation of the authentication module pam_mysql.so
Need to download pam_mysql.so source package from the Int
##################################Yum-y Install mariadb Mariadb-serverSystemctl Start mariadbSystemctl Enable MARIADB##################################Set the database root passwordMysql_secure_installation First, set the password, you will be prompted to enter the password Enter current password to root (enter for none): Set root password? [y/n] New password:
SUPER permissions to establish a connection beyond the maximum connection. A connection is established only when the MySQL request is executed. After the execution is complete, the connection is closed and replaced by a new connection.
Remember, too many connections will cause high memory usage and lock your MySQL server. Generally, a small website requires 100-200 connections, while a large website may require 500-800 or more connections. The value here depends largely on your usage of MySQL/
'init_connect= ' SET NAMES UTF8 'Character-set-server=utf8Collation-server=utf8_unicode_ciSkip-character-set-client-handshakeDatadir=/var/lib/mysqlSocket=/var/lib/mysql/mysql.sockSymbolic-links=0Log-bin=mysql-bin #手动添加该项配置 The prefix of a binary fileLog-slave-updates=true #手动添加该项配置 Open from logRelay-log=relay-log-bin #手动添加该项配置 The prefix of the trunk log fileRelay-log-index=slave-relay-bin.index #手动添加该项配置 Define the name of the trunk logserver-id=11
By default, mariadb is stored as/var/lib/mysql/, and is now changed to/media/data/mysql for some reason.1, first stop the mariadb and httpd daemon:# Systemctl Stop Mariadb.service# Systemctl Stop Httpd.service2. Copy the/var/lib/mysql/to the/media/data/:# cp-avp/var/lib/mysql//media/data/3, modify the MARIADB configuration file:Check the configuration file for
ObjectiveVSFTPD is the most respected FTP server program in the Linux distribution, characterized by its compact and light-hearted, safe and easy to use, currently in the open source operating system commonly used in the FTP suite is mainly proftpd, pureftp, Servu and WU-FTPD. This article will explain the basic functions of vsftpd and how to implement virtual user access control based on Pam and MYSQL/MARIADB.Introduction to Basic ConfigurationWorking principle650) this.width=650; "src=" Http:/
First, install MARIADB related softwareYum Install mariadb* Note "*", you can install all MARIADB related modules Second, start MARIDB serviceService MARIADB Start Log in by default with a blank password to check if the installation was successful Mysql Third, modify the database for UTF8 encodingService
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.