When saving Chinese characters to MySQL DATA in Python, Chinese characters in the Database become garbled characters. I guess it's about Chinese encoding.
MySQL uses UTF-8. I have converted the field into UTF-8. I found that it still does not work.
My operating system is Win XPNo matter what version of MySQL is installed, an error will be reported midway through the MySQL service started in the management tool.Content: unable to start MySQL service on local computer error 1067: Process aborted
When I created an index today, two varchar (200) + utf8 columns reported that the index was too long to exceed 1000 and failed. I checked the information because a uft8 occupies up to three bytes, the details are as follows:
UTF-8: Unicode
1: In the terminal: mysql-v. Below is
Code Fragment:
[Shengting @ login ~] $ Mysql-VMySQL Verver 14.7 distrib 4.1.10a, for Redhat-Linux-GNU (i686)
2: in MySQL: mysql> status;The following is a code snippet:Mysql> status;--------------MySQL Verver
When I run the program in the afternoon and insert mysql, an error occurs:
"The table 'xxxx' is full"
But it has never been a problem before.
After checking the internet, we all said that the temporary table is faulty. You need to set
MySQLQuick Reference Manual
Prepared by: Ocean:
Blog: http://oceanspace.tk
I don't need to introduce why MySQL is used. Since you will read this article, you already know it. Let's introduce the quick query manual.
When I was learning
In MySQL, insert operations are often used in three types
One is direct insert into, the other is insert ignore into, and the other is replace.
Insert into is the most commonly used insert operation. When the primary key or unique index has
Unsigned indicates "unsigned,Unsigned, Zerofill is not a negative number. You can use this type to increase the Data Length,For example, if the maximum int value is 65535, the maximum int unsigned zerofill value isIt is 65535*2.
=====================
1. Create a database
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Create database 'db _ message ';
2. Create a data tableCode
Code highlighting produced by Actipro CodeHighlighter (freeware)http:
In MySQL 5.1, the new replication technology is introduced, namely row-based replication.
MYSQL replication Modes
In MySQL 5.1, the new replication technology is introduced, namely row-based replication.In short, this new technology focuses on the
Locking a table can accelerate the insert operation with multiple statements:
Lock tables a write;
Insert into a values );
Insert into a values (8, 26), (6, 29 );
Unlock tables;
This improves the performance because the index cache is
Avoid NULL values as much as possible
It is difficult for MySql to optimize empty columns and can be replaced by 0, special value or null string.
Limitations of B-TREE Indexing
You can only start from the leftmost column of the index. You cannot
DECIMAL (M, D)
Example: salary DECIMAL (5, 2)In this example, 5 (precision) represents the number of important decimal digits, and 2 (data range (scale) represents the number of digits after the decimal point. In this case, the salary column can
13.7. SQL syntax used for preprocessing statements
MySQL 5.1 supports premade statements on the server side. If you use a suitable client programming interface, this support can take advantage of the efficient client/server binary Protocol
You do not need to use a cursor loop to read data. You can directly select * into @ to the variable and run it by passing parameters. Example: Drop procedure if exists stat_cube.sp_get_end_date;
Create procedure stat_cube. 'SP _ get_end_date '(
P_sp_
Use show status to optimize the MySQL databaseKeyword: mysql1. view the configuration information of the MySQL server.1. mysql> show variables;2. view various status values of the MySQL server.1. mysql> show global status;3. Slow Query1. mysql> show
Document directory
Conclusion
In the previous article, we talked about mysql_execute_command. This function calls different functions for further processing based on the parsed SQL commands. Let's first look at the process of processing 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