MySQL root Password forgot SolutionSummary in many cases, the default password of the root user is not blank after mysql is installed. In this case, you need to log on to mysql to reset the password. Step 1: View/root /. mysql is installed in the
This document will introduce the following content:
1. Configure master-slave replication for mysql2. Configure semi-sync3. SSL-based Replication4. Copy Filtering5. Master Model I. System Environment Master: 192.168.56.101Slave: 192.168.56.102MySQL-5
Implement master-slave synchronization between two Mysql databases.
I. Overview
MySQL versions later than 3.23.15 provide the database replication function, which enables the synchronization, master-slave mode, and mutual backup of two databases.
II.
Mysql database master-slave synchronization, mysql database master-slave
Environment:
Mater: CentOS7.1 5.5.52-MariaDB 192.168.108.133
Slave: CentOS7.1 5.5.52-MariaDB 192.168.108.140
1. Export the master service data and synchronize the initial data
MySQL master/dual Server Load balancer
MySQL dual-host master architecture, coupled with Load Balancing Devices, can achieve high performance and high availability of mysql database load balancing, the server Load balancer device can divide the load
IP: 192.168.4.221
Environment: centos 6.6, jdk7, mysql5.1, SonarQube-4.5.4 (LTs)
RootUser operations
Preparations: JDK 7 has been installed and environment variables have been configured.
1Install mysql5.1
(Refer to the MySQL installation
First, close the firewall and SELinux:#iptables-F#/etc/init.d/iptables stop#sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/sysconfig/selinuxSecond, download the package:1. Download Apache:Http://apache.dataguru.cn//httpd/httpd-2.4.12.tar.gz2.
First of all, we first install the same version of the MySQL database with two servers. I am installing the mariadb-10.0.13 database here.The first step, environment settings:My side set is two intranet server, master server ip:10.6.0.187; IP10.6.0.1
First, the way to start
1, use service to start: Service mysqld start
2. Start with mysqld script:/etc/init.d/mysql start
3. Use Safe_mysqld to start:safe_mysqld&
Second, stop
1, use service to start: Service mysqld stop
2. Start with mysqld
MySQL master-slave copy structure is based on MySQL Bin-log log, from the library through open IO process received the main library Bin-log log increment
Information and save it to the local relay log, and then translate the incremental information
The last time we introduced the MySQL 5.1 master configuration tutorial, this time we come to achieve the MySQL 5.5 Master-slave replication, in fact, the overall configuration is almost the same, only a few subtle differences. System: CentOS
Attention! #号后面是需要操作的地方.
1. Prerequisite Considerations
First, verify that the server is in a secure state, that is, no one can arbitrarily connect to the MySQL database.
Because the MySQL database is completely out of password protected during
Server multi-MySQL service setup and master-slave replication One, One_server multi-mysql service building "1" The first MySQL service build No introduction here, we think the first MySQL service has been completed; "2" copy of MySQL Basedir
MySQL Master-Slave introductionConfigure the Primary
MySQL after installation modify the MY.CNF configuration file, modify the MY.CNF, add server-id=130 and Log_bin=dashuo1
[[email protected] ~]# vim /etc/my.cnf
After
1, install the Yum source, has downloaded the installation package------------------------------------------------RPM-IVH epel-release-latest-7.noarch.rpm------------------------------------------------2. Install VimYum-y Install Vim-----------------
This tutorial is for password field invalidation for password reset.Relatively simple, as follows:1, Linux under the Change/etc/my.cnf "Windows location please Baidu" to find the [mysqld] field, the following plusSkip-grant-tables2. Exit save, enter
1. Description:The first is to prepare two servers, one master server (master), the other from the server (Slave), and then to ensure that the master and Slave version of the same and master can not be higher than Slave version, it is generally
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.