MySQL notes trigger application bitsCN.com
Create a triggerCreate a trigger with only one execution statementCreate trigger name BEFORE | after trigger eventON table name for each row execution statementThe trigger name parameter indicates the name
Usage of data backup and restoration in MySQL notes
Data is very important. I want to know this with my toes. to ensure data security, we need to regularly back up data.
Here are some notes about data backup and restoration.
Data backup use the
MySQL notes-detailed explanation of system information functions bitsCN.com
The system information function is used to query the system information of the mysql database.VERSION () returns the database VERSION number.Mysql> select version ();+ ------
Sharing bitsCN.com
The positioning result is as follows:
Customer environment:Windows server 2003 r2 standard edition sp2Mysql Ver 14.12 Distrib 5.0.18, for Win32 (ia32)In apache 2.2RisingWebshield client 1.08
The problem has been reproduced. It can
Analysis of bitsCN.com based on unique and primary constraints
Fields defining the UNIQUE constraint cannot contain duplicate values. you can define a UNIQUE constraint for one or more fields. Therefore, UNIQUE can be defined at the field or table
MySQL5.6 how to change the secure processing password to explore bitsCN. comMySQL 5.6 will automatically hide the password information in the log. This is not just obfuscation, and then stores the unidirectional hash value in the log file. You can
How to solve the problem of ERROR1045 during mysql logon bitsCN.com in Windows, the following ERROR occurs during mysql logon: ERROR 1045: Access denied for user: 'root @ localhost' (Using password: YES)
I found some solutions from the Internet
How to add the gbk character set after mysql installation bitsCN.com
1. view the current character set:
Show character set;
2. delete mysql related directories
Rm-rf/usr/local/mysql/* installation directoryRm-rf/var/lib/mysql database Directory
How does sphinxql obtain the number of results and detailed description of showmeta bitsCN.com
Mysql:Select count (*) from main_index;
However, a syntax error is reported here.
Method 1:Check the document as follows:Aggregate functions (AVG (), MIN (
SphinxMySQL protocol and SphinxQL application instance bitsCN.com
The searchd daemon of sphtracing supports MySQL binary network protocol from version 0.9.9-rc2 and can be accessed through standard MySQL APIs.For example, the "mysql" command line
Mysql Performance Optimization script mysqltuner. pl usage introduction bitsCN.com
MySQLTuner: http://github.com/rackerhacker/MySQLTuner-perl
MySQLTuner usage:Downloading and using MySQLTuner is actually a very simple process:
Wget mysqltuner.
How to solve the newline problem of LoadData record in mysql bitsCN.com
The problem is as follows:The persons table has two fields: id and name.The content in the document persons.txt (tabs are used to separate fields in each line ):1 Bush2 Carter3
Mysql insert limit analysis: bitsCN. com1. if many rows are inserted from the same client at the same time, use the INSERT statement containing multiple values to INSERT several rows at the same time. This is faster than using a single-row INSERT
Analysis and induction of deadlock logs caused by MySQLInnodb tables
Case descriptionDuring the running of the scheduled script, it is found that when the SQL statement for backing up the table and the SQL statement for deleting some data in the
How to modify the mysql log file location bitsCN. comMySQL log files are generally stored in/var/log/mysqld. log, The following describes how to modify the location of MySQL log files for your reference.
Today, you need to change the location of
Settings and problems related to the auto-increment auto_increment function of mysql bitsCN.com
The auto-increment auto_increment function in mysql is believed to have been used by every phper and knows how to set the field to an auto-increment
Analysis of mysql stored procedure transaction management bitsCN. comACID: Atomic, Consistent, Isolated, Durable
A storage program provides an excellent mechanism to define, encapsulate, and manage transactions.
1. MySQL transaction support
1)
Introduction to innodb lock classification in mysql bitsCN.com
I. innodb row lock classification
Record lock: record lock, that is, only a single row is locked.
Gap lock: interval lock. Only one interval is locked. (note that the interval here is
Mysql service unexpectedly stops 1067 error solution summary bitsCN.com
Event Type: ErrorEvent Source: Service Control ManagerEvent Type:NoneEvent ID: 7034Date: 2012-11-1Event: 9:25:52User: N/Computer: SVCTAG-HZWGF3XDescription:The service MySQL
Mysql basic operations bitsCN.com start and stop mysql services under the window
Start mysql database
Net start mysql
Stop a mysql database
Net stop mysql
Restart the mysql database
Net restart mysql
Command line format: use of basic mysql
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