Semi-synchronous replication in MySQL master-slave Replication
Experiment MySQL uses the plug-in provided by Google to complete the semi-synchronous replication model; the physical machine is still Windows 7, and the virtual machine is CentOS 7;
Master node: 192.168.255.2
Slave node: 192.168.20.3
Configure the master slave re
MariaDB: Selective binary log event
As the first article on MariaDB's series of interesting features, we started from selectively skipping the replication of binlog events. MariaDB 5.5 and 10 support this feature.
By default, when the MySQL standard replication function is used, all events are recorded in binary logs a
XtraDB/InnoDB file format (submitted to the MariaDB official Manual), xtradbmariadb
This document is the translation of the mariadb official manual: XtraDB/InnoDB File Format.
Original article: https://mariadb.com/kb/en/library/xtradbinnodb-file-format/Https://mariadb.com/kb/zh-cn/xtradbinnodb-file-format/ I submitted to the MariaDB official manual
Currently, Xtr
MySQL 5.6 based on Gtid master-slave replication (this is: MariaDB-10)
The gtid (Global Transaction IDs) introduced by MySQL 5.6 makes the configuration, monitoring, and management of its replication capabilities easier to implement and more robust. Gtid is a unique, unique representation of the server's UUID, which is a globally unique identifier, consis
Tags: OWIN install apache nal vhost mit file directory conf save data LocalInstalling the MARIADB DatabasePreparatory work:Download mariadbOfficial website: https://mariadb.com, select download Download the version of the free-build installationCreate MARIADB to run users, create user groups, create data store directories, and specify these when initializing [[emailprotected] ]# useradd mysql
[[emailprotect
mysql protocol. offline backup is not supported, but offline recovery is supported.
-------------------------------------- Split line --------------------------------------
Install LAMP (Apache with MariaDB and PHP) in CentOS/RHEL/Scientific Linux 6)
Implementation of MariaDB Proxy read/write splitting
How to compile and install the MariaDB database in Linux
Ins
As the first article on MariaDB's series of interesting features, we started from selectively skipping the replication of binlog events. MariaDB5.5 and 10 support this feature. MySQ is used by default.
As the first article on MariaDB's series of interesting features, we started from selectively skipping the replication of binlog events. MariaDB 5.5 and 10 support
We all know that MARIADB database management system is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL licensing MARIADB is fully compatible with MySQL, including APIs and command line, so that it can easily become a replacement for MySQL. In this article we will detail the steps to install the MARIADB database in the Mac
permissions that can be granted to a user. The following 3 tables are summaries of permissions.
Database Administration Permissions
Permission Name
Actions allowed by permissions
CREATE USER
Using Advanced Account Management statements
FILE
Read and write files on the MariaDB server host
GRANT OPTION
Grant account privileges to other accounts
PROCE
Reference: Http://wangfeng7399.blog.51cto.com/3518031/1393146?utm_source=tuicoolCompiling MariaDB-5.5 with CMakeCMAKE specifies compilation options in a different way from make, which is implemented in the following way:./configure CMake../configure--help cmake.-lh or Ccmake.Specifies the options that are commonly used when installing the installation path of a file: -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/data/mysql-dsysconfdir=/etcTh
', MASter_log_file= ' mysql-bin.000001 ', master_log_pos=245; Query OK, 0 rows affected (0.01 sec) executes the start slave;# start replication thread. 3, view from the server state can use show SLAVE status\g View from the server state, as shown below, also can be used show processlist \g View the current replication status:Slave_io_running:yes #IO线程正常运行Slave_sql_running:yes #SQL线程正常运行To achieve semi-sync
Today, we need to install a database named MariaDB in windows because of our work. I am not familiar with this database, So Baidu has found two methods. Let's share the following.
Method 1: It looks simple, but it is not installed successfully.
1. Download MariaDB from the official websiteAddress: https://downloads.mariadb.org/
Ii. Installation1. decompress the package.2. unzip the directory to see the my-h
Label:This article demonstrates how to build the most basic transactional replication.Environment Preparation: 2 virtual machines:The server names are Repa and Repb,repa are publishers, and REPB are subscribers. Are installed WindowsServer 2008r2 English version (the reason for working in a foreign company). and ensure that the two servers can exchange visits.SQL Server:In the above virtual machine, install SQL Server R2 x64 English Enterprise Edition separately.Demo Database:Microsoft Sample Da
optional ############[Mysqldump]QuickMax_allowed_packet = 16M[MySQL]No-auto-rehash[Myisamchk]Key_buffer_size = 128MSort_buffer_size = 128MRead_buffer = 2MWrite_buffer = 2M[Mysqlhotcopy]Interactive-timeout####################################[Mysqld_safe]Log-error=/var/log/mariadb/mariadb.logPid-file=/var/run/mariadb/mariadb.pid## include all files from the Config directory#!includedir/etc/my.cnf.d##########
consumption of hash keys are high. This requires the business DBA to determine the gains and losses.[5.6]Official 5.6 supports database-based distribution. With the above background, we all know that after this feature came out, there was no response in China.However, this policy also has advantages:1. For scenarios that can be distributed by table, you can apply this policy by migrating tables to different databases. This policy is operable.2. The speed is faster, because the hash key is a dat
Label:First, the expected effect: Environment: CentOS 6.5 mariadb 10.0.14 (MYSQL-V) Primary server: 192.168.5.206 from server: 192.168.5.207 The primary server database has any changes from the service will be followed by changes. Second, pre-preparation: Ensure that the master-slave database data is consistent. Three, configuration: 1?? Primary server: VI/ETC/MY.CNF.D/SERVER.CNF Add the following configuration to ensure that the Log-bin file exists,
Use mysqldump to back up MariaDB
Introduction to mysqldump backupMysqldump is a utility used by mysql to store databases. It mainly generates an SQL script, including the CREATE TABLE INSERT command required to re-CREATE a database from scratch. It is suitable for backing up databases with a small amount of data.Advantages: simple backup and easy recovery.Disadvantages of backup: schema and data are stored together, with huge SQL statements and a sing
Use LVM to back up and restore the MariaDB Database
Comparison with mysqldump to introduce LVM snapshot volumesMysqldump: Hot Backup cannot be performed, and the backup time is long when the database is large. The advantage is that the Backup recovery is very simple.The advantages and disadvantages of LVM are as follows:Advantages:1. Almost hot backup. The database needs to be locked in order to generate data inconsistency during Backup.2. All storage
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.