Reprint http://chenzhou123520.iteye.com/blog/1863407The previous article, "MySQL pessimistic lock summary and practice" talked about the MySQL pessimistic lock, but pessimistic lock is not suitable for any scenario, it also has some shortcomings,
Mainly refer to the following two articleshttp://forum.ubuntu.org.cn/viewtopic.php?t=330121Http://www.linuxidc.com/Linux/2011-09/42290.htm1, go to MySQL official website to download the latest source code, download page drop-down menu selected
Today found Navicat for MySQL has a Linux version of Ha, happily speaking,First Officer online download Linux version: Http://www.navicat.com/download
1. Download the navicat110_mysql_en.tar.gz file2. Unzip the tar file after
When inserting records with duplicate values on a unique key, we can control how MySQL handles this situation: using the IGNORE keyword or on DUPLICATE key UPDATE clause skips the INSERT, interrupts the operation, or updates the old record to the
ObjectiveAs in C + +, how many bytes are required to define an int type, and how many bytes are required to define the double type, MySQL has strict control over the data in each column of the table, which is key to the success of the data-driven
SolveMySQLmethods that are not allowed from remote access
There are two major strides in opening MySQL's remote login account:1. Determine that the firewall on the server does not block port 3306.MySQL default port is 3306, need to determine the
Brain Tonic, varchar (n), n refers to the maximum number of characters, not the number of bytes. First, the test instructions:When MySQL builds a table, it encounters a strange phenomenon:Root@localhost: Test10:30:54>CREATETABLETb_test
The storage engine is a table-level concept, and each table created should indicate its storage engine, and it is not recommended to cross-use the same storage engine for the same database.InnoDB: The enhanced version is XTRADB,MARIADB, which uses
1. To optimize the query, avoid full-table scanning as far as possible, and first consider establishing an index on the columns involved in the Where and order by.2. When doing statistical functions, try to avoid querying database tables in real
MySQL Modify table structureThe following table names test5 only one field hobby operationModify Table NameALTER TABLE TEST5 rename Newtest;Change the name of a field at the same timeStatement structure ALTER TABLE name change field name new field
The processing of dates in the work is often encountered, the requirements may be varied, so the focus is introduced.1. Get the current dateSelect Now () -- results: 2015-10-28 22:41:11 Select Now (), SLEEP (3), now ()-- results 2015-10-28 22:43:34
How to use crontab to regularly back up MySQL database under Linux:First step: Configure the backup directory code on the server:Mkdir/var/lib/mysqlbackupCd/var/lib/mysqlbackupStep Two: Write the backup script code:VI dbbackup.shPaste the following
☆ NOTE: MySQL database installation is not introduced, because everyone installation path is different, so this step ignored, said the focus:1. Initialize MySQL database/usr/local/mysql/scripts/mysql_install_db--user=mysql--basedir=/usr/local/mysql--
The variables in SQL Server are first declared and then assigned:Local variables with an @ identifier, global variables with two @ (common global variables are generally defined);Declare local variable syntax: DECLARE @ variable name data type; For
MYSQLDUMP-UROOT-P ABC > ABC. SQL(Export the database ABC to ABC.) SQL file)When prompted for a password, enter the password for the database user name (if you export a single table, enter the table name after the database name)If you are prompted
1. Install Ubuntu1 under VM) Download image ubuntu-15.04-desktop-amd64.isohttp://yunpan.cn/cf5dwv6zw33ef access password ECBA (personal share on 360 network disk) 2) After installation is complete, The first problem is Chinese conversion--language
netstat time_wait | WCBy adjusting the kernel parameters to resolve,vi /etc/sysctl. confNet.ipv4.tcp_syncookies = 1 means that Syn Cookies are turned on. When there is a SYN wait queue overflow, cookies are enabled to protect against a small number
Yum-style installation of MySQL 1. Yum remove MySQL mysql-server mysql-libs compat-mysql51 2, Rm-rf/var/lib/mysql 3, Rm/etc/my.cnf See if you have MySQL software:rpm-qa|grep MySQL If it exists, continue with the deletion. RPM-style
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