One, the installation configuration on Mac //Brew installation brew Install mysql //set to boot brew services start mysql //can also manually start mysql.server start //login mysql-uroot Note: 1
In the daily development process of access to SQL Server and MySQL database operational issues, it may be that the previous contact is SQL Servers before beginning to contact MySQL, always feel that using MySQL is not using SQL Server so handy, some
IntroductionMySQL is currently one of the most widely used relational database, if used properly, can support enterprise-class high concurrency, high-reliability services, improper use and even a slightly higher level of personal sites are difficult
sudo aa-statusIf Mysqld is included in enforce modeWhen AppArmor blocks the writes/accesses. What are can do is edit/etc/apparmor.d/usr.sbin.mysqldnear the bottom like so: /usr/sbin/mysqld { &NBSP, ..... /VAR/LOG/MYSQL/R, /var/log/mysql/*
Open binary log (binary log content: Change the operation of the database)In the/ETC/MYSQL/MY.CNFRemove the comment from the Log_bin line to open the following is the saved pathThe following expire_logs_days is how long, MySQL automatically deletes
Now the two servers used have installed MySQL, all in rpm packaging, can be used normally.In order to avoid unnecessary trouble, master and slave server MySQL version as far as possible to keep consistent;Environment: 192.168.0.1 (Master)192.168.0.2
MySQL has been installed on the two servers, which are all packaged in rpm and can be used properly.To avoid unnecessary troubles, the MySQL versions of the master and slave servers should be consistent as much as possible;Environment: 192.168.0.1
Mysql tutorial two Server database tutorial synchronous data backup method
1. Server StatusServer A: 192.168.1.1Server B: 192.168.1.2
2. Create a synchronization userHost Domain A: 192.168.1.2 User Name A: sync_a Password A: aaaHost Domain B: 192.168
Configure MySQL master-slave backup and read/write splitting as required, and take the following notes on the Setup steps, problems, and solutions.
Configure MySQL master-slave backup and read/write splitting as required, and take the following
Setting up MySQL Data Synchronization (one-way and two-way) as a result of the company's business needs, we need to synchronize data between China Netcom and China Telecom, so we have done a two-way MySQL synchronization. Write down the process and
I. Prepare the server because the binlog formats (Binary logs) between different MySQL versions may be different, so the best combination is the MySQL version of the Master and the Slave version.
I. Prepare the server because the binlog formats
The master-slave configuration of the MySQL server is a very simple task. Instead of starting from scratch, it is always on the MySQL server that has been installed by others. This will involve the mysql version, startup File and other issues.
But
MySQL master-slave solution introduces the main functions of the MySQL master-slave solution:Read/write splitting allows the database to support larger concurrency. Especially important in reports. Some Report SQL statements are very slow, leading
Using vsftp to set up FTP sites in Linux 1. Statement
Copyright (c) 2006-2007 belongs to etony c. f..Reprinted from http://www.debsir.org /.
2. FTP principles
The abbreviation of FTP Transfer Protocol is described in RFC 959.
An FTP session
MySQL performance query and Configuration Overview
View MySQL database performance:Show proceelist view the database connection status and total number of connectionsShow globalstatus like 'max _ used_connections '; view the maximum response
The Master/Slave configuration of the mysql server, which can implement read/write splitting, or restore data from the slave database after the master database fails.Two machines are required, mysql is installed, and the two machines must be in the
Lab requirement: deploy a MySQL cluster to reduce single point of failure (spof) of the database.
Tutorial solution: prepare five servers, mgmd (192.168.100.1) as the management node, sqlA (192.168.100.2) and sqlB (192.168.100.3) as the SQL node,
MySQL replication Overview
MySQL supports unidirectional and asynchronous replication. One server acts as the master server during the replication process, and one or more other servers act as slave servers. MySQL replication tracks all database
The master-slave configuration of the MySQL server is a very simple task. Instead of starting from scratch, it is always on the MySQL server that has been installed by others. This will involve the mysql version, startup File and other issues.
But
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.