Mysql trigger bitsCN.com
Simple MySQL trigger instance1. syntax:CREATE TRIGGER
-- The trigger must have a name and a maximum of 64 characters. it may be followed by a separator. it is similar to the naming method of other objects in MySQL.
Modify the mysql root password bitsCN.com
When you forget the root password of MySQL, you can reset the root password of MySQL in the following steps:
■ Linux platform ■
1. first confirm that the server is in a secure state, that is, no one can
How to optimize Mysql's ten-million-level quick paging bitsCN.com
MySQL database optimization allows for fast paging analysis of tens of millions of data records.The data table collect (id, title, info, vtype) has these four fields, where title is
Mysql performance problems bitsCN.com
Recently, the project encountered performance problems when using the mysql database. When a single table has more than million data, the speed of adding, deleting, modifying, and querying is significantly
Mysql basic import and export command bitsCN.com
1. export the entire database
Mysqldump-u username-p database name> exported file name
Mysqldump-u wcnc-p smgp_rj_wcnc> wcnc. SQL
2. export a table
Mysqldump-u user name-p database name
Six tips for MySQL database performance optimization: bitsCN.com
On the surface of the database table, there is an index and error prevention mechanism. However, a simple query takes a long time. Web applications may run well in the development
Mysql ADDDATE function usage bitsCN.com
ADDDATE (date, INTERVAL expr type) ADDDATE (expr, days)When activated by the INTERVAL format of the second parameter, ADDDATE () is the synonym of DATE_ADD. The related function SUBDATE () is the synonym of
How to implement the wildcard * matching function in MYSQL Query and bitsCN.com
When sending a short message on the site today, you may encounter a function that is to perform a wildcard search for an account.
The following situations may be used
Mysql master/slave and master mode bitsCN.com
Implementation mechanism of mysql replication1) the primary mysql first saves the Operation statement in the bin-log.2) start a process or thread from the server to initiate a request to the master mysql.
What is the size of a single MySQL table? bitsCN.com
In earlier versions of MySQL 3.22, the single table size of MySQL is 4 GB. at that time, the storage engine of MySQL was also the ISAM storage engine. However, when the MyISAM storage engine
Mysql reinstallation experience sharing bitsCN.com
Yesterday, the database on the server suddenly couldn't be opened (I tried a variety of methods), and later I had to reinstall it. but every time I installed it in the last step, I would prompt
Mysql date field exception Datatruncatedforcolumn processing bitsCN.com
The supported range of mysql date types is 1000-01-01 to 9999-12-31.
The supported range of the datetime type is 1000-01-01 00:00:00 to 9999-12-31 23:59:59.
If you
Quick start to disable the MySQL service's batch processing code bitsCN.com
Save the following code in the txt text and change the extension to. bat.
When you need to start the mysql service, double-click the. bat file. Double-click it again
Mysql database AB replication configuration bitsCN.com uses two mysql servers to implement AB and master-slave replication.
1. configure the MASTER server
MASTER 172.16.1.3
BACKUP 172.16.1.2
1. edit the my. cnf file
# Add the two rows on the
Performance analysis of Profiling in Mysql bitsCN. comMySQL5.0.37 and later versions support Profiling-Official Manual. This tool can be used to query how much time the SQL statement executes, how much time the System lock and Table lock take, and
Mysql foreign key association problem
BitsCN.com continues to read the book "mysql database development" recommended by the instructor. I encountered a problem when I saw the foreign key association problem with the innodb database, in the book, you
MYSQL-master-slave practice bitsCN.com two days ago, two mysql instances were installed on one computer, one port is 3306, and the other port is 3307.
Configure the two mysql databases and test master and slave.
My test environment is windows,
Enable php to support pdo_mysql bitsCN. com1. download the pdo_mysql package
Wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
2. append and compile php so that pdo_mysql.so files are generated under the module directory.
Tar zxf PDO_MYSQL-1.0.
Mysql lock table mechanism analysis bitsCN.com in order to better optimize mysql in high concurrency, it is necessary to understand the lock table mechanism when mysql queries an update.
I. Overview
MySQL has three levels of locks: page, table,
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