Master configuration:
The code is as follows
Log-bin = Mysql-binServer-id = 1Binlog-do-db = Powerdns #要同步的数据库
Master new Slave Account:
The code is as follows
mysql> GRANT
The following is the use of custom variables in MySQL, writing a union example of a detailed introduction, the need for a friend to come over the reference
(Reference self >)Suppose there is such a requirement: Write a union query whose first
1. Introduction to GrammarThere are three tables A, B, and C, and now you need to insert the values from table B and table C to find the corresponding fields in table A. For this situation, you can use the following statement to implement:INSERT
If the direct use of the green version of MySQL, download after decompression, just the directory of the My.ini file Basedir (the basic directory of MySQL) and datadir (MySQL data directory) specified can be, as shown below.
#Path to installation
MySQL database provides two types of indexes, if not set correctly, the efficiency of the index will be greatly compromised but the problem is completely unknown.
Copy Code code as follows:
CREATE TABLE Test (
ID INT not NULL,
last_name CHAR
If you forget the MySQL root password, you can reset it in the following ways:
1. Kill off the MySQL process in the system;
2. Use the following command to start MySQL, to do not check the permissions of the way to start;
Today depressed died, in the Linux down a program old said can't find the table, but I was clearly built the table, in the MySQL command line can also be found, why the program could not find the table?
Later consulted a teacher only to fix, the
See if the event is open
The code is as follows
Show variables like '%sche% ';
To open an event plan
The code is as follows
Set global Event_scheduler = 1;
Create stored Procedure test
The code is as follows
CREATE PROCEDURE Test ()
BEGIN
MySQL forgot password processing method solution:
1. Stop the MySQL service. Open a command line window to stop the MySQL service: Net stop MySQL
2. Start MySQL, general to the installation path of MySQL, find Mysqld-nt.exe
Execution:
1, what is the storage engine?
Data in MySQL is stored in files (or memory) in a variety of different technologies. Each of these technologies uses different storage mechanisms, indexing techniques, locking levels, and ultimately provides a wide
When working on a very large table, you may occasionally need to run many queries to get a small subset of a large amount of data, instead of running the query on the entire table, instead of having MySQL find the few records needed each time, it
We know that MySQL does not support conditional indexing. What is a conditional index? A conditional index is an index that is produced after a certain filter on an indexed column based on the Where condition. Such indexes have the following
Solving Method
MySQL database at run time in the C disk Windows folder in the Temp folder automatically generated temporary files, these files are small, but the number is very large, one months down very likely to have hundreds of thousands of
1. After the successful installation, through phpMyAdmin into MySQL, click on the "User" menu, the user "root" host "localhost" click Edit Permissions, the following has an option "Modify password", enter the password you want, such as: 123456.
2.
If the table defines a varchar field and the number is passed in, an implicit conversion occurs.1. Table DDL2, the SQL to pass int3. String-Passed SQLTake a closer look at the table structure, the field type of RID: When the user comes in int,
Main ip:192.168.1.1From ip:192.168.1.2Main: #vim/etc/my.cnfAdded: Binlog-do-db=charlesdb # #自己创建的同步数据库, this is charlesdb.Binlog-ignore-db=mysqlModified: Server_id=1 # #server_id要不同650) this.width=650; "Src="
CMake \-dcmake_install_prefix=/data/mysql \ #The Installation base directory.-dmysql_datadir=/data/mysql/data \ #The Location of the MySQL Data directory.-dsysconfdir=/data/mysql \ #The Default my.cnf option file
Adjust the number of concurrent databases in the production environment and the number of concurrent databases in the environmentDuring development and testing, we often do not care much about the concurrency configuration related to the database,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service