MySQL replication is quite complex compared to NoSQL databases such as Mongodb,redis!
Overview
The primary server first logs data changes to the primary log, then reads the master log on the primary server through the I/O thread from the server,
1.1 Environment Construction
Prepare two Windows NT hosts, install the Ikey Server Windows version separately, make sure that the MySQL service starts properly, and make sure that the two hosts are on the same LAN. Determine which station is the
MAC Local Environment Buildin the Mac system, we can use the Mamp Pro (official website: https://www.mamp.info/en/) software to build the local server. Install this software, the site directory in the/applications/mamp/htdocs folder, just put the
Before the server inside the MySQL unload reload, install MySQL did not make a summary, change a new computer, fill up on the installation record, installation, find some users of the installation records, found a lot of pits
Cut a picture, as a
Introduction to MySQL
MySQL is an open source relational database management system (RDBMS), the MySQL database system uses the most commonly used database management language-Structured Query Language (SQL) for database management.
Tips for
Do not know how to solve, so put his space on the server also installed a MySQL, to solve the problem, today has a problem, can not be installed on this server MySQL bar, Search:
PHP remote connection MySQL speed is slow, sometimes remote
1 loading records in a text file into a MySQL database table(1) Text file format: One record per line, the field values are separated by the tab locator, the field order is the same as the order in the table definition, and the indeterminate field
Basic Concepts
• character (Character) refers to the smallest form of semantic notation in human language. such as ' A ', ' B ', etc.;
• Given a series of characters, assign a numeric value to each character, and use a numeric value to represent
PHP looks very simple, and a beginner can start writing functions in a few hours. But it takes time and experience to build a stable, reliable database. Here are some of these experiences, not only MySQL, but also other databases can be referenced.
Not in, JOIN, is NULL, not exists efficiency comparison
Statement one: SELECT COUNT (*) from a where a.a to (select a from B)
Statement two: SELECT COUNT (*) from A left join B in A.A = B.A where B.A is null
Statement three: SELECT COUNT (*) from
First, how to create a new independent account and set permissions
Here I use Navicat as my database management tool to open the navicat.
Select "User"--"New user"
Enter user name, host, password, it should be noted that the host is not write
The method is simple:
Save the following code as test.php and put it into the web directory to execute.
Copy Code code as follows:
/**
* Test PHP connection with MySQL
* Editor: Www.jb51.net
*/
$link =mysql_connect ("localhost",
They will discuss statements that return data, such as inserts and statements that do not return data, such as update and delete. They will then write a simple program that retrieves data from the database
Execute SQL statement
Now that we have a
(1) Improve the database insert performance Central idea: Try to write data at once to file and reduce the checkpoint operation of the database. The following four configuration entries were modified this time:1) Set the
Mysqldumpcommand-line Export database:1, into the MySQL directory under the Bin folder: cd MySQL to the Bin folder directoryAs I entered the command line: CD C:\Program files\mysql\mysql Server 4.1\bin2, Export database: Mysqldump-u user name-p
When xtrabackup Backup Restore principle backs up the InnoDB table, xtrabackup several threads to copy the. ibd Files of the isolated tablespaces and monitor the redo log changes during this process. Add to your own transaction log file
MySQL database power-on error:
Innodb:the log sequence number in Ibdata files does not match
Innodb:the log sequence number in the ib_logfiles!
100224 12:24:20 Innodb:database is not shut down normally!
Innodb:starting crash recovery.
innodb:reading
Here are the MySQL commands that we often use and are very useful. Below you see # means execute command on UNIX command line, see Mysql> is currently logged on to MySQL server, execute MySQL command on MySQL client.Login to MySQL, if you are
Learn how to manage and navigate MySQL databases and tables is one of the first tasks to master, the following content will be mainly on MySQL database and table of some common commands to summarize, some we have to grasp the commands, some of the
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