Document category: Database
Keyword: MySQL master slave
Recently, due to project requirements, Mysql Data Synchronization has been set on Linux servers. Fortunately, there are a lot of network resources, and Google has all of them, but the actual
实现MySQL读写分离部署集群基础环境1 realizing MySQL read-write separation1.1 QuestionsThis case requires the configuration of 2 MySQL server +1 proxy Server, to achieve the MySQL agent read and write
Score Query System-publishing-centOS7tomcat startup + mysql Database ConfigurationPrerequisites
The score query system is put into use and deployed on a linux server. It is a centOS7 system. previously, centOS7 was installed in the local virtual
Primary server 192.168.7.182 Centos6.5 MYSQL5.6.10From server 192.168.112.7 Centos6.5 MYSQL5.6.10
Primary server configuration (192.168.7.182)
Vi/etc/my.cnf
[Mysqld]Server-id=1Log-bin=mysql-binBinlog-do-db=hello the name
The MARIADB database is divided into source and binary versions, the source version requires CMake compilation, and this is the binary version installation
# tar zxvf mariadb-5.5.31-linux-x86_64.tar.gz # mv
Reference: http://blog.csdn.net/mzlqh/article/details/7621307 Click to open linkin fact, now the UBUNTU12.GenevaDirect sudo apt-GetInstall MySQL on the go, mysql-.The client will automatically load you # to see if MySQL is running sudo netstat-tap
Enter the following command:/usr/local/mysql/bin/mysqladmin-uroot-pyyyyyy variables |grep max_connectionsNano/etc/my.cnfmax_connections=200Service MySQL RestartThe maximum number of concurrent connections in MySQL modification method as long as in
(1) The simplest modification method is to modify mysql's my. INI file character set key value, such as default-character-setutf8character_set_serverutf8 after modification, restart mysql service, servicemysqlrestart using
Install various services in Linux (III)-MySQLMySQL master-slave backup bitsCN.com
!! Assume that all installation packages are in the/share Directory. the installation directory is/opt !!
$ Ll/share-Rw-r -- 1 root 129041873 Nov 29 mysql-5.1.54-linux-
-- Create user CREATEUSER
-- CREATE USER
-- Create a user
Create user 'user1' @ 'localhost' identified by 'pass1 ';
Grant select, INSERT, UPDATE, delete on *. * TO 'user1' @ 'localhost ';
Grant all on *. * TO 'user1' @ 'localhost ';
1. Modify
Mysql master-slave replication technology (TEST) to start configuration: www.2cto.com Step 1: Create a replication account. Each slave uses the standard MySQL user name and password to connect to the master. The user who performs the copy operation
MySQL data backup and recovery I. data backup methods
Description of MySQL parameters: http://www.linuxidc.com/Linux/2014-04/99673.htm
Data backup and recovery http://www.linuxidc.com/Linux/2014-04/99674.htm for MySQL management
1. physical backup
1
The JSP Chinese garbled problem page is filtered to get Chinese characters, but inserted into the MYSQL database becomes "?" Why?
When I recently logged on to the database on the company's server, all the results obtained when I executed the query
If you want to perform one-way MySQL Data Synchronization, read another article:
I. Prepare the environmentMaster:Ip: 192.168.211.128Mysql version: 5.0.77 (you can view it by running the command mysqladmin-uroot-p123 version)Slave:Ip: 192.168.211.131
MySQL5.6 master-slave Replication (read/write splitting) configuration full version, mysql master-slave read/write splitting
MySQL5.6 master-slave replication (read/write splitting) Tutorial
1. There are two ways to start master-slave replication
Install JDK, Tomcat, and MySQL basic software in Linux.
1. Install JDK
After Centos6.5 is installed, OpenJDK is installed by default for Base Server. You must first Delete OpenJDK.
1.1 view the previous jdk
Check whether openjdk has been installed
/*** Note that MySQL default is a native connection, if you want to change to LAN access, to modify the settings. Error is (Communications link failure)* 1, on the server command line input $:vim/etc/mysql/mysql.conf.d/mysqld.cnf* 2, find
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.