MySQL FAQs
MySQL always crashes
First, you should try to find out whether the problem MySQLd daemon is dead or whether your problem is related to your customer. You can use MySQLadmin version to check how long your MySQLd server has been running
Delete and uninstall MySQL mysql that comes with Linux
How to uninstall mysql in linux1. check whether mysql is installed before.
Command: rpm-qa | grep-I mysqlAs shown in:
Note:MySQL-client-5.5.25a-1.rhel5MySQL-server-5.5.25a-1.rhel52. stop
Add and delete mysql users add and delete mysql Users
(Note: Because commands in the MYSQL environment are followed by a semicolon as the command Terminator)
Format: grant select on database. * to username @ login host identified by 'password'
Mysql import and export data
1. batch import of formatted text data:First, create the corresponding data table in mysql. for example, you can name the table stu. The formatted text data is put in a txt file. each line contains a record, and the
In linux, shell executes mysql commands. in shell development, we often need to operate mysql databases (such as querying data and exporting data), but we cannot enter the mysql command line environment, it is necessary to simulate the mysql
PowerDesigner is generating SQL comments to the project (mysql comments) 1: powerDesigner found that many built-in tools support oracle by default, and I am using mysql now, so I modify the configuration
2: powerDesigner15.1, mysql5.6
3: Forward
Mysql configuration file my. cnf details how to adjust MySQL running parameters and modify/etc/my. the cnf file adjusts the mysql running parameters and takes effect after MySQL is restarted. After MySQL 4, some internal variables can be set during
MySQLsystemvariableamp; apos; max_allowed_packetamp; apos; issetto (1 MB). an error occurs when you install opencms to use the mysql database.
Java code
MySQL system variable 'max _ allowed_packet 'is set to 1048576 bytes (1 MB ).
Please
Slow connection to mysql in linux: find/-name my. cnf to find the storage path of mysql configuration file my. cnf
The path I found is/etc/my. cnf.
Run vi/etc/my. cnf to edit the file.
Locate [mysqld] and add skip-name-resolve below it (you can
MySQL master-Slave replication configuration heartbeat function introduction sometimes encounters such a fault during MySQL master-Slave replication: on Slave, Slave_IO_Running and Slave_ SQL _Running are both Yes, and Slave_ SQL _Running_State
Mysql common optimization
Optimize Group By statementsBY default, MySQL sorts all group by col1, col2 ,..... The query method is as follows: specify order by col1, col2,... in the query ,.... If the statement explicitly contains an order by clause
MySQL management and optimization (7) design and use of indexes
All MySQL column types can be indexed. using indexes is the best way to improve SELECT performance.
The index is for the entire column and does not support local indexes.
Example:
InnoDB: Error: logfile. ib_logfile0isofdifferentsize010485760bytes:
140618 23:12:32 [Note] Plugin 'FEDERATED' is disabled.140618 23:12:32 InnoDB: The InnoDB memory heap is disabled140618 23:12:32 InnoDB: Mutexes and rw_locks use Windows
The perfect solution for last-step failure of reinstalling MySQL (experience summary) I believe that everyone has had the experience of reinstalling MySQL. if I reinstall MySQL, it is basically not possible in the last step unless the operating
Among the key features of InnoDB, insertbuffer insert buffer is a unique feature of the InnoDB storage engine. Using insert buffer, the InnoDB storage engine can greatly improve the insertion performance of non-unique secondary indexes in the
In MySql, transactions are a series of steps in a logical unit of work. Transactions are used to ensure the security of data operations.
Transaction features:
1. Atomicity (Atomicity)2. Consistency (stability and Consistency)3. Isolation (Isolation)
Use of mysqlloaddatainfile and SELECTintooutfile to back up database data load data [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.txt'
[REPLACE | IGNORE]
Into table tbl_name
[FIELDS
[Terminated by 'string']
[[OPTIONALLY] enclosed by 'char ']
The key _buffer_sizetable_cache parameter for mysql optimization has many parameters on the MySQL server. However, for most beginners, many parameters often make us confused, but which parameters need to be adjusted, which of the following has the
A considerable number of MySQL users have encountered the same problem about storage and display of data in milliseconds. Because MySQL only provides DATETIME, TIMESTAMP, TIME, DATE, and year time types, and the minimum unit of DATETIME and
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