MySQL database optimization experience (common server configuration) 13th page bitsCN.com
After installing mysql, the preparation file should be in the/usr/local/mysql/share/mysql Directory. There are several preparation files, including my-huge.
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
How does MySQL import csv data files solution bitsCN.com
If you back up your data, ignore it.If the data is too big, use the database client software to directly import the data into the memory, or execute SQL directly.1. specify the file path.2.
Introduction to mysql database import and export, functions, and stored procedures bitsCN.com
Mysql common data export commands:1. mysql exports the entire databaseMysqldump-hhostname-uusername-ppassword databasename> backupfile.
Can bitsCN.com solves Can't connect to MySQL server on 'localhost' (10048), which is generally seen on windows 2003 server using mysql.
Cause of the error:
Applications need to be quickly released and create new connections. However, because the
MySQL modifies the storage engine of all tables in a database to the InnoDB type statement bitsCN.com.
USE '[DBNAME]'; SELECT GROUP_CONCAT (CONCAT ('alter table', TABLE_NAME, 'engine = InnoDB; ') SEPARATOR '') FROM information_schema.TABLES AS t
After win8.1 is upgraded, the mysql service cannot be started.
BitsCN.com
After win8.1 is upgraded, MySQL55 is missing in the service list.
1. restore the service first.
Mysql does not see maitenance, find the installation file
MYSQL master/master switchover (master database not down) bitsCN.com
MYSQL master/master switchover (master database not down)
Switch the Master (3307 write-3308 read)
Premise: stop the business. there are no write operations on 3307.
1. set 3307
Install and use bitsCN.com for sysbench
Install and use sysbench
Sysbench is an open-source multi-threaded performance testing tool that can perform performance tests on CPU, memory, thread, IO, and database. The database currently supports MySQL,
MySQL database: quotation marks (bitsCN.com) that cannot be omitted in SQL statements
MySQL database: quotation marks that cannot be omitted in SQL statements
One time I found a BUG in the code and almost fainted during the troubleshooting process.
Thoughts on a Mysql statement bitsCN.com
Thoughts on a Mysql statement
Today, I saw a mysql statement written by my colleagues, but I didn't fully understand it. I suddenly felt the gap. in my mind, mysql statements only add, delete, query, and
Introduction to MySQL garbled processing and character set bitsCN.com
Problem introduction:
We often encounter some cases of inserting Chinese characters into the MySQL database, but when we select them, we find garbled characters. For example,
UbuntuServer12.04 install mysql5.6.10 UbuntuServerUbuntu
BitsCN.com
The first time I got in touch with the server version of Linux, it was also the first time I installed binary mysql with command lines. it took two days and one night to get started.
Classic SQL statement Daquan (2) bitsCN.com
II. improvement1. description: copy a table (only copy structure, source table name: a new table name: B) (Access available)Method 1: select * into B from a where 1 <> 1 (for SQlServer only)Method 2:
Configure bitsCN.com for MYSQL master/slave on the same server
MYSQL master/slave configuration on the same server
Install two MYSQL services on one server and configure the master-slave management of the MYSQL service.
(1) modify the my. ini file
Summary of using MySQL on LJMM platform (Linux + Jexus + MySQL + mono) bitsCN.com
Prepare PDF files. NET Framework open-source project "supermarket management system" is transplanted to Linux to run (demonstration address: http: // 221.123.142.196),
Mysql views the storage engine, table structure, and other information of a table. bitsCN.com
View the information of the mytable table
1. view the storage engine and number of records of a table.
Mysql> show table status like 'mytable'/G; * ********
Mysql uses the replace command to replace bitsCN.com in batches.
Mysql uses the replace command for batch replacement
Mysql> select * from test1;
+ ------ + --------- +
| Id | name |
+ ------ + --------- +
| 1 | aaaKaaa |
| 2 | bbbKbbb |
|
MySql adds, deletes, modifies the field name, and modifies the field type bitsCN.com
MySql adds and deletes fields, modifies field names, and modifies simple syntax of the field type MySql, which is commonly used but not easy to remember. Of course,
MySQL storage engine bitsCN.com
The storage engine, to put it bluntly, is how to store data, how to index the stored data, and how to update and query data. Because in relational databases, data is stored as tables, the storage engine can also be
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