Pagination Display Detailed 1. Preface Pagination display is an uncommon way to browse and display large amounts of data, one of the most frequently handled events in Web programming. For the veteran of Web programming, writing this code is as
Create a datasheet use
Command: CREATE table ( [,.. ];
Syntax: CREATE [temporary] TABLE [IF not EXISTS] tbl_name [(create_definition,...)] [Table_options] [Select_statement]
Cases
The code is as follows
Copy Code
The code is as follows
Copy Code
Mysql>select * from xi_table into outfile ' D:test.xls ';
Export to TXT file:
The code is as follows
Copy Code
SELECT * from xi_table into outfile ' d:test.txt ';
command line source Import Database:
The code is as follows
Copy Code
1, to move the imported. sql file to the bin file, this is a convenient path2, the 1th step with the above export3, enter mysql:mysql-u user name-PAs
Problem one, the log log is too large will lead to MySQL prompts error writing file ' xxx ' (errcode:28) error, the solution is very simple.
1, clean up the disk, free space;2, SQL statement query the original table data is too large, optimizing
Let's begin by telling you how to use mysqldump backup
SQL to back up the MyISAM table:
The code is as follows
Copy Code
/usr/local/mysql/bin/mysqldump-uyejr-pyejr--default-character-set=utf8--opt--extended-insert=false-
SQL statement:
The code is as follows
Copy Code
UPDATE table_name Set Field_name=replace (field_name, ' from_str ', ' to_str ')
Descriptiontable_name--the name of the tablefield_name--Field Namefrom_str--a
1. Select the most applicable field propertiesMySQL can support a large amount of data access, but generally speaking, the smaller the table in the database, the faster the query executed on it. Therefore, in order to achieve better performance when
Database backup:
Open cmd to execute the following statement:
The code is as follows
Copy Code
Mysqldump-h localhost-u root-proot databasename >d:databasename.sql
Database restore:
Open cmd to execute the
MySQL sometimes because of power off or other causes of the database corruption, the wrong message is as follows:
Mysql:can ' t Open file: ' Sdb_sessions. Myi '. (errno:145)
For more information, and the Support Center at
We can use MySQL's own
1, mysqldump1.1 BackupMysqldump is a SQL-level backup mechanism that guides data tables into SQL script files and is relatively appropriate for upgrades between different versions of MySQL, which is also the most common method of backup. Now let's
Refer to the following workaround
Click on a connection--properties--Switch to the Advanced tab--Remove the "use MySQL character set" option – Select 65001 (UTF-8) or 10008-gb2312 in the "Code" section, and then turn it on to display the Chinese
Format: Grant Select on database. * To User name @ login host identified by "password"
Example 1, add a user test1 password for ABC, so that he can log on any host, and all databases have query, insert, modify, and delete permissions. First connect
Error occurred while processing: mysql-server-5.5 mysql-servere:sub-process/usr/bin/dpkg returned an error code (1)
This problem just before I met, a period of time has been bothering me, but after my research, slowly groping, also consulted the
Now only through the WDCP panel with the database backup, and then restore functionality, you can solve the problem of backup of larger databases, and relatively complete.
First, WDCP database backup
In the list of databases,
At the same time, the amount of online access continues to increase for 1G memory server Obviously feel the difficulty of severe when even every day will panic or occasional server card This problem once bothered me for more than half a month MySQL
SQL Server randomly reads several records from a table:Example: The code is as follows:Copy code Select top 10 id, title from news order by newid () After optimizationIn MSSQL, the following method is used to randomly read more than data
database-based page counter example The code is as follows:Copy code $ Db = mysql_connect ("localhost", "root", "qwaszx ");$ Query = "select * from num ";$ Result = mysql_db_query ("test", $ query );If ($ result ){$ R = mysql_fetch_array ($
Welcome to MyFreeWebs.net, your free hosting service provider. We provide:100% free hosting;100% no sub-choice or use your own domain name;200 MB space, 4 GB/month transfer;Real FTP access;PHP and MySQL access;Click install phpBB2 Forum;Phpmyadmin
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