MySQL table names are case-insensitive. by default, MySQL in Linux is case-sensitive. the following settings enable MySQL to make table names case-insensitive:
1. log on with root and modify/etc/my. cnf;
2. add a row under the [mysqld] Node: lower_
The following articles mainly introduce the optimization of MySQL table join queries and the actual operations of LEFTJOIN and RIGHTJOIN. If you are interested, you can click the following articles to view them, I hope it will help you in this
How to Use pt-online-schema-change to change the primary key of a MySQL table, ptonlinechangeschema
When the service runs for a period of time and finds that the original primary key settings are not reasonable, you want to change the primary key.
The problem that the MySQL table field name contains a minus signWhen inserting data into MySQL Data, the SQL syntax error is always prompted. After half a day of check, it turns out that the table name contains a minus sign. Original TABLE
Basic MySQL table operations/*********************************/create table USER www.2cto.com (ID int unsigned, USERNAME varchar (10) not null, PASSWORD varchar (32) not null, GENDER tinyint, BIRTHDAY date, www.2cto.com IMAGEURL varchar (30),
One way to operate mysql table sharding in php is generally to consider Table sharding or partition when the data in our database exceeds records. This time I will introduce in detail some table sharding methods. First, we need to think about the
MySQL TABLE maintenance and transformation change the column data type www.2cto.com [SQL] alter table visitor MODIFY nam VARCHAR (30); append a new column [SQL] ALTER TABLE visitor ADD age INT; alter table visitor ADD age int first; alter table
MySQL table structure replication, table data migration, temporary table and view creation 1. copy only the table structure, do not copy data www.2cto.com select * into B from a where 1 <> 1; 2. Table data migration table B already exists: insert
In a recent project, you need to perform fuzzy search for multiple keywords in a single MySQL table. However, these keywords do not necessarily exist in a field. For example, in an existing table, there are three fields: title, tag, and description,
Mysql table is marked as crashed and last (automatic ?) Repair failed solution 1. my colleague's server reported an error when backing up mysqldump. This is because the myisam table has too much data. At some point in time, the MyISAM table that
Solve the Problem of garbled characters in mysql table Character Set gbk, column Character Set Latin1, and python query, mysqllatin1
Recently, I encountered an abnormal problem in the company. In mysql databases, the character sets of databases and
The following article describes how to modify a table in MySQL. We first add a field (a column) to introduce the actual operation and application of modifying a table in MySQL, if you are interested in modifying tables in MySQL, you can browse the
Method for obtaining the last record of each userid In the MySQL table, mysqluserid
See the following table:
CREATE TABLE `t1` (`userid` int(11) DEFAULT NULL,`atime` datetime DEFAULT NULL,KEY `idx_userid` (`userid`)) ENGINE=InnoDB DEFAULT
The following describes the Hash algorithm used to process Mysql table shards. Before learning about the Hash algorithm, let's take a look at the Hash algorithm.
We know that a Hash table is a value calculated using a special Hash algorithm. This
If there is a problem with the data speed of a table in mysql that stores around 1E. Only when the where primary key idxxx is queried, other queries do not exist. If there is a problem with the data speed of a table in mysql that stores around 1E.
You can easily master the Mysql table character set and verify that each table has a table character set and a verification rule. it cannot be blank. To specify the TABLE character set and collation, the create table and alter table statements have
Delete record bitsCN.com of some key fields in the mysql table
Clean up the duplicate data of Statistic every day [that is, the Date Server Item SubItem is identical, the Id must be different, and the Value may be the same]
Let's take a look at
An error occurred when the index of a mysql table was damaged and solved in the afternoon. I was surprised that my dedecms website had a problem. when I visited the website, I reported an error in full screen and checked the mysql log. the error
This method only describes how to save the table name (data is not recovered). If you want to restore the original data, use extundelete to restore the file and put it back.In addition, it is suitable for storing the full-backup frm and idb files
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.