Simple mysql Data Operations
01 mysql-uroot-partition tablename04alter table add fieldname fieldtype05alter table table1 add id int unsigned not Null partition primary key06alter table TN chang 1_newfieldname fieletyep null or not partition table
The following article describes how to correctly check and maintain the MySQL database table, as well as the specific descriptions of the matters worth your attention in the actual operations of checking and maintaining MySQL database tables, we
1. log on to the MySQL database server from the command line1. log on to MySQL with the default port 3306/Usr/local/mysql/bin/mysql-u root-p2. manage multiple MySQL instances with different ports through TCP connections (note: this function is
MySQL configuration file my. cnf parameter optimization and Chinese explanation MySQL configuration file my. cnf parameter optimization and Chinese explanation, very detailed comment on the role of each parameter and the recommended value in Chinese.
Mysql storage engine type, MyISAM & amp; InnoDB, etc.
For some texts, refer to other blogs or texts.Official explanation:
· MyISAM: the default MySQL plug-in storage engine, which is one of the most commonly used storage engines in Web, data
(5) Common mysql storage enginesOverview
?? Before mysql5.5, the default storage engine is MyISAM, and after 5.5, it is changed to InnoDB. To modify the default engine, you can modify the default-storage-engine in the configuration file. You can use
Differences between MyISAM and InnoDB in mysql tables: This is the default type, which is based on the traditional ISAM type, and ISAM is the abbreviation of IndexedSequentialAccessMethod (sequential access method with indexes, it is a standard
The following articles mainly introduce how to use MySQL built-in functions to convert IP addresses and related numbers. In actual operations, when processing character formats, such as converting 54789, we only need to use: format (12345, 0). The
1. Canrsquo; tconnecttoMySQLserveronlsquo; localhostrsquo; (10061) Translation: cannot connect to mysql Analysis on localhost: This description
1. Canrsquo; t connect to MySQL server on lsquo; localhostrsquo; (10061) Translation: cannot connect to
Mysql table repair is frequently used. We will teach you two ways to fix mysql tables. If you have encountered this problem before, take a look.
Solution 1:
shell> mysqlcheck -r -c -o -uuser -ppasswd db_name
The second method to fix the
A Brief Introduction to the transaction mechanism in MySQL and a brief introduction to mysql transactions
Start with a question
Recently, the Bank has suffered a lot of troubles. Many depositors put their money in the bank, but the bank still does
These things are all found from other places to solve the MYSQL database error method, does not necessarily apply to the miracle database, just for reference, the specific solution still needs to be explored.
These things are all found from other
What is fuzzy search? Why fuzzy search? I believe everyone knows this, so I will not proceed. Today, I will only talk about how to use fuzzy search. A LIKE. The well-known like statements are easy to use, compatible, and easy to maintain, but
Prevention and repair of MySQL table corruption 1. analysis of causes of table corruption
The following are common causes of mysql table destruction:
1. data files are damaged due to a sudden power failure on the server.
2. force shutdown without
Overview ?? Before MySQL 55, the default storage engine was MyISAM, and then changed to InnoDB. To modify the default engine, you can modify the default-storage-engine in the configuration file. You can use showengines to view the engines supported
Due to temporary power failure, kill-9 can be used to stop the MySQL service process. all these may destroy MySQL data files. If the service is changing the file when it is disturbed, the file may be in an incorrect or inconsistent state. This
Mysqlerror: # 1062Duplicateentry '***' forkey1 problem solution: bitsCN.com I changed the int type of id to bigint. In fact, it may be better to change it back. An error may occur during database backup.
This problem occurs during the testing of
Summary of solutions for Tableisreadonly in mysql bitsCN.com if it is a database in use, some class problems suddenly occur.
Run the following command in Linux. of course, you need to find your mysql directory.
Linux
Several "SQL" statements worth attention in MySQL ◆ 1. Insert batch data from one table to another table with the same structure
Insert into table1 (select * from table2)
◆ 2. Insert a large number of SQL statements as follows.
Insert into table1
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.