Mysql date addition and subtraction bitsCN.com
1. MySQL adds a time interval for the date: date_add ()
Set @ dt = now ();
Select date_add (@ dt, interval 1 day);-add 1 day
Select date_add (@ dt, interval 1 hour);-add 1 hour
Select date_add (@ dt,
MySQL database, performance monitoring bitsCN.com
Show status;Flush status;
View the current connection count show status like 'thread _ % ';Thread_cached: Number of cached threadsThread_running: number of activated threadsThread_connected: number
Military rule application developed by MySQL database (I) bitsCN.com
Slides address: http://www.slideshare.net/mysqlops/mysql-9838563Comparison of column values of the same data typePrinciple: number-to-number, character-to-characterComparison
Mysql database crash bitsCN.com
There is a crm system, where a report is made, where the source code and database are placed on the same server, and the database uses mysql. However, on the suddenly reported error page today, the system prompts
Improve MySQL's table_cache bitsCN.com
The following are my broken ideas at work, and the records are messy ......
........................................ ................................
In mysql, there is a table_cache parameter. when the value
Mysql source code learning-less simple Hash bitsCN.com
Hash linked lists are commonly used to map different values to different locations, the traditional sequential traversal or binary search is not required to reduce the query time. A regular
MySQL source code: how to deal with the read/write lock bitsCN.com reprint, please sign: Yin Feng
-----------------------------------------------------------
Recently, I encountered a problem where an online machine waited for the semaphore for a
Check whether logs are enabled for bitsCN.com in mysql logs.
Mysql> show variables like 'log _ bin ';
How to know the current log
Mysql> show master status;
Use mysqlbinlog to view binary log files
Shell> mysqlbinlog mail-bin.000001 (to write
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.
Handler_read _ * bitsCN.com of MySQL
In MySQL, we generally use show status to query the Server STATUS. The syntax is generally as follows:
SHOW [GLOBAL | SESSION] STATUS [LIKE 'pattern' | WHERE expr]
After executing the command, you will see a lot
Mysqldump common account Goterror: 1044 solution mysqldump
BitsCN.com
Mysqldump common account Got error: 1044 solution mysqldump common account Got error: 1044 mysql use common user backup appears: [root@xok.la] # mysqldump-u dbuser-ppass db> db.
Usage of bigint, int, smallint, and tinyint storage in mysql bitsCN.com
Use the exact numeric data type of integer data. Bigint integer data from-2 ^ 63 (-9223372036854775808) to 2 ^ 63-1 (9223372036854775807) (all numbers ). The storage size is 8
Step 11: select the most stable MySQL version bitsCN.com
MySQL open-source database has multiple important branches: MySQL Cluster, MySQL 5.1, MySQL 5.5, and MySQL 6.2. Each branch has the same MySQL database version: Development version, Alpha
Mysql modifies the character set bitsCN.com
View the encoding: show variables like 'collation _ % '; show variables like 'character _ set _ %'; modify: MySQL: modify the default character set and convert the character set (MySQL 5.X) 1. modify the
MYSQL foreign key (ForeignKey)
BitsCN.com
MySQL 3.23.44 and later versions support foreign key constraints for InnoDB engine tables.
Usage conditions of foreign keys:
1. the two tables must be InnoDB tables, and MyISAM tables do not currently
Analysis of ifelse in Mysql stored procedure
An error is reported when writing the following code:
[Error] 1064-You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
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