MySQL master-slave replication is widely used in database backup, failover, data analysis and other occasions.MySQL master-slave replication keeps track of all changes to the database (update, delete, and so on) in the binary log based on the master
The bibliography used in the user verification is recorded in the datasheet, and now I want to take out all the bibliographies, using distinct and group by to get the results I want, but I find that the return results are arranged in a different
Today, the data server and Business Server are separated, which involves the open remote access to MySQL, record as follows for memo:
Suppose the data server IP address is 192.168.1.101, and the Business Server IP address is 192.168.2.51.
First
One, union query usage
The union query is simpler, as if the two tables were merged and the fields were combined
If it is
SELECT * FROM table1, table2
Words, two of the same fields will not be merged but
Select A1 from table1 Union Select A1
The examination system has done a user to import the question function, causes the user to import many duplicate questions, I need to inquire and deletes the duplicate record, therefore has this article.
(i) a single field
1, look up the redundant
Find out what binary log files are currently
The code is as follows
Copy Code
Mysql> show binary logs;+------------------+-----------+| Log_name | File_size |+------------------+-----------+| mysql-bin.000001 | 1357315
Login directly under the command line MySQL run show STATUS;
1, view MySQL server configuration information
The code is as follows
Copy Code
Mysql> Show variables;
2, view the MySQL server running the
MySQL default root user only local access, not remote connection management MySQL database, Linux How to open MySQL remote connection? Set the steps as follows:1. Grant command create remote connection MySQL authorized user Itlogger
The
installing MySQLSince MySQL is not pre-installed in Mac OS X, it needs to be installed manually, and I chose MYSQL-5.5.10-OSX10.5-X86.DMG (http://dev.mysql.com/downloads/mysql/).
Download MySQL and choose the right version.Run downloaded DMG file:
MySQL Tutorial database tutorial Backup Import Export data import data export
Import and export of databases and datasheets we use mysqldump to manipulate,Import and export of data we use the load data infile with the load data outfile operation
Oriental Network to provide you with 100M-500M/MYSQL/FTP free universal space application,
The original source from: In the Oriental Network to provide 100m-500m free universal space application, fast, no advertising, space needs to open the forum
The first is the database establishment to be prepared:
We're going to set the drop binary field to a BLOB type, select the appropriate BLOB type based on the size of the file, and the size of the binaries that each BLOB type can hold.
Four types of
Translator: Ye Jinlong (Email:), Source:http://imysql.cn/, reprint please specify AS/translator and source, and can not be used for commercial purposes, offenders must investigate.
Date: 2006/10/01
This article discusses MySQL's backup and
0, what is a database partitionto say what is a database partition, take MySQL for example. The data in the MySQL database is documented as the situation exists on the disk, by default placed in the/mysql/ Data below (can be viewed through the
Below through an illustrated way to introduce the general equipment Management Information System database creation process, details please see below.
Equipment table: ID, name, category, model, date of shipment, date of purchase, manufacturing
If you want to separate the WEB server from the database server, you need to configure the database server so that MYSQL/MARIADB can log on remotely.
Assume:
Web Server IP Address: 192.168.33.61Database server IP Address: 192.168.33.63Server
Reprinted from: Http://www.cppblog.com/wolf/articles/69089.html#PostThe original text is too incisive and image, can't help reprint came to leave notes, like the author saluteAfter MySQL version 3.23.44, the InnoDB Engine type table supports foreign
Cause Analysis of excessive MySQL sleep process connectionsWhen the php page is executed, everything is automatically released. I believe many people share the same idea. It turns out that this is not the case. For example, the session will not be
MySQL mysqldump is used for export. The basic usage is as follows:Shell> mysqldump [OPTIONS] database [tables]If you do not specify any tables, the entire database will be exported.Run mysqldump -- help to obtain the option table supported by your
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