Sometimes when we manage the database we need to use the command to perform import and export operations, because this is stable and reliable, not easy to have garbled appearance. and the imported database size is unrestricted.
MySQL Database
The solution is as follows:
The code is as follows
Copy Code
#vi/etc/my.cnf
Add the following coding settings in the appropriate place
The code is as follows
Copy Code
SQL UNION operatorThe UNION operator is used to merge the result sets of two or more SELECT statements.
Note that the SELECT statement within the UNION must have the same number of columns. The column must also have a similar data type. Also, the
In the MySQL master-slave replication process or some of the number of cases where the master is never synchronized, this article will be a simple summary of the data master is not synchronized, please note that this article mainly from the database
When the computer started again, found that the MySQL service failed to start, using net start hint 1067 error, toss 2 hours can not be resolved, and then only by manually delete data files, log files, then start the service, and then import data to
Workaround:
1. Add the "binary" attribute to the field containing Chinese as a binary comparison, such as changing "name char (10)" to "name char" binary.
2. If you use the source code to compile MySQL, you can compile MySQL using
This is a good way to solve these problems with MySQL's native tools.
Cases
Total records: 1016126, average size of 46822 per line
Let's say we're exporting and importing to a database named blog.
Export:
Mysqldump-u database user name-p
Indexing is the key to fast searching. The establishment of MySQL index is important for MySQL to run efficiently.
1. General Index
The only task for a normal index (indexed by the keyword Key or index) is to speed access to the data. Therefore,
The recommended high-quality PHP code today is the mysql backup and recovery class. Online mysql backup and recovery are available on common PHP websites, the advantage of this is that you do not need to use phpmyadmin or the client tool for each
/** Created on 2010-4-25 ** To change the template for this generated file go* Window-Preferences-PHPeclips tutorial e-PHP-Code Templates*/$ Conn = mysql_connect ('localhost', 'root ','');Mysql_select_db ('member', $ conn );$ SQL = "select * from
Mysql_fetch_lengths is used to determine the length of mysql_fetch_array (), mysql_fetch_assoc (), mysql_fetch_object (), or mysql_fetch_row (). If the display succeeds, false is returned;Mysql_fetch_lengths syntax.Mysql_fetch_lengths
Source: CCU newsgroup | edit: Hunte | date: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
Free php space [php mysql ftp]500 MB space15 GB bandwidth2nd database2nd plug-in domain nameOne-day FTP account0. Force the advertisement on your websiteMySQL and PostgreSQL supportUpgrade planPHP language/CGI, small-scale industrial supportScript
Latest Free Space Application [html + php + mysql + ftp]Our professional VM plan includes all features, and you are looking for the best possible price-completely free200 MB network spaceHost control panelEnter installerFile managerQuick cluster Web
Free FTP, PHP, MYSQL, no ads + Rice space bindingFree website hosting package Free1k.com includes:-1 000 m B storage space-enough or even the largest content website-000 MB bandwidth-the most abundant enterprise and personal websites. If you need
* 4000 MB disk space (4 GB storage)* 8000 MB transfer (8 GB bandwidth)* PHP/MySQL database* NO advertisement!* Free subdomains (http://username.4000webs.com )!* FTP or browser-based file manager* Fast innovation and reliable dual-core servers with a
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