The following articles on basic types and unified character set analysis of MySQL character set bitsCN.com mainly introduce the basic types of MySQL character sets, the actual operation methods of unified character sets, and other related content,
MySQL Basic SQL syntax statement bitsCN. comDDL-Data Definition Language (Create, Alter, Drop, DECLARE)
DML-data manipulation language (Select, Delete, Update, Insert)
DCL-Data Control Language (GRANT, REVOKE, COMMIT, ROLLBACK)
First, we will
MySQL performance analysis and description
BitsCN.com
1. use the explain statement to view the analysis resultsFor example, explain select * from test1 where id = 1; the columns of id selecttype table type possible_keys key key_len ref rows extra
How to create a table in Mysql database: bitsCN.com
1. are you still using a primary key for association between two tables?For example, there are two tables, one for news topic and one for news. now the two tables need to be associated, I think
Introduction to the MySQLSHOW command bitsCN. comSHOW TABLES or show tables from database;
Explanation: displays the names of all tables in the current database.
Show databases;
Explanation: displays the names of all databases in MYSQL.
Show
How to View mysql tablespaces and indexes: bitsCN. com1. view indexes
(1) unit: GB
Select concat (ROUND (SUM (index_length)/(1024*1024*1024), 2), 'GB') AS 'total Index size' FROM information_schema.TABLES WHERE table_schema LIKE 'database ';
+ ----
Mysql index classification and usage analysis bitsCN.com
I. MySQL: Indexes are saved in B-tree format.The Memory storage engine can select Hash or BTree indexes. Hash indexes can only be used for equality comparison of = or .
1. normal index:
The statement bitsCN.com for adding a transaction to a mysql database is as follows: alter table tableName engine = InnoDB;
Tables used
Create table if not exists 'test '(
'Id' int (10) not null auto_increment,
'Websitename' varchar (200)
Mysql queries the statement bitsCN. com1 from the first row to the first row of records. query the first row of records:
Select * from table limit 1
2. query records from row n to row m
Select * from table1 limit n-1, m-n;
SELECT * FROM table
Quick repair of corrupted MySQL database bitsCN.com
1. myisamchkTo use myisamchk, you must temporarily stop the MySQL server. For example, we want to repair the discuz database. Perform the following operations:# Service mysql stop (stop MySQL );#
Mysql master-slave synchronous replication error solution: a case of bitsCN.com mosquito set up a master-slave mysql replication this afternoon. as a result, after all the servers are configured, the following error is reported:
Last_IO_Error:
Mysql command prompt line connection garbled solution bitsCN.com
WINDOWS1. MySQL has some environment variables that can be set,
You can enter show variables to view the current environment variable settings;
2. some of these variables have
Sharing bitsCN.com in mysql for data migration and storage
DELIMITER $
USE 'servant _ 591up' $
Drop procedure if exists 'sp _ move_data '$
Create procedure 'sp _ move_data '()
BEGIN
DECLARE v_exit int default 0;
DECLARE v_spid BIGINT;
DECLARE v_id
Query bitsCN.com for the decode effect of a mysql-like oracle Database
The following code passes the test in MYSQL. MSSQL should be able to run without testing. # Create a table as followsCreate temporary table tmp (a int, B int, c int );Insert
MySQL single-table multi-keyword fuzzy query implementation method bitsCN.com in a recent project needs to implement multi-keyword fuzzy query in a single MySQL table, but these keywords do not necessarily exist in a field. For example, in an
Mysqllimit paging optimization method sharing bitsCN.com also extracts 10 pieces of data
Select * from yanxue8_visit limit, 10 and
Select * from yanxue8_visit limit 0, 10
It is not an order of magnitude.
There are also many five limit optimization
MYSQL error: Can 'topenfile: 'amp; #215; amp; #215; amp; #215 ;. myi' (errno: 145) solution bitsCN.com to reduce this problem. The solution is to minimize the server power failure without reason. when the server is shut down, manually close the
Full export and import implementation method in mysql bitsCN.com helped the carp to transfer the database server to a large group buying website at noon yesterday. This article should have been summarized after the transfer was completed yesterday,
In Mysql, the date and time function application does not require someone bitsCN.com to describe the valid format of the value range of each type and the specified date and time value. for details, see 7.3.6 date and time type.
Here is an example
Configure MySQL and detach a MySQL instance to detach a mysql instance
The following articles in bitsCN.com mainly describe how to correctly install MySQL through the rpm Package, configure and uninstall MySQL, the following describes how to
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