Before referring to the practice of others, using DBUTILS.POOLEDDB to establish a number of reusable MySQL connection, some of the article wrong, improper method, led me to go a lot of detours, after a few days, finally found the right way to
In MySQL, the basic form of creating stored procedures is as follows:
CREATE PROCEDURE sp_name ([proc_parameter[,...]])
[Characteristic ...] Routine_body
Where the Sp_name parameter is the name of the stored procedure,
0x00: Preface.There are two tables, one table field is Id-email, the other table field is ID-PWD, you want to merge the two tables with SQL script, because the same ID can match.0x01: Example.A field Id:email650) this.width=650; "src="
Original: http://blog.csdn.net/a11085013/article/details/17370053Show variables like '%quer% '; query whether to open a slow query!!Step One: Modify My.ini (mysql config file)Add the following two words to the My.iniLog-slow-queries = "D:\wamp\mysql_
In the process of using MySQL, we often need to authorize the user (add, modify, delete), in MySQL there are three ways to implement the method of INSERT user table, CREATE user method, Grant method. Let's take a look at how the grant method is
MySQL uses FRM and IDB files for data recovery sources MySQL Status: version:5.6.*Storage Engine: InnoDB storage engine to restore the database: Skill key to restore the table: Slot_value existing files: Back up all physical files (including ibdata1
Show Processlist and show full processlistThe output of the Processlist command shows which threads are running, not only the current number of connections, but also the current connection status to help identify problematic query statements.If it
Creation of an indexThe index slows down the write operation and optimizes the read timeIndex: Normal index, which accelerates the time to find.Fulltext: Full-text indexing, you can select fields that occupy very large text information as indexed
Second, design skillsprogramming habits vary from person to person, here only to provide some experience, can be consulted. 1. Use include to modularize your program codeThe include function basically says, "It's like reading another file (HTML or
one, CONCAT () functionThe CONCAT () function is used to concatenate multiple strings into a single string. Using data table info as an example, where select Id,name from Info LIMIT 1, the return result is +----+--------+| ID | Name |+----+--------+
Problem reason: remote login mysql error after migrating database to MySQL host:1130 ' 10.0.0.8 ' is This MySQL ServerWORKAROUND: Switch to MySQL host and refresh MySQL database after entering MYSQmysql> FLUSH privileges;Successful remote login
The MVCC of InnoDB is achieved by saving three hidden columns after each row of records, one of the two columns that saved the creation time of the row, the expiration time (or deletion time) of a saved row. Of course, it is not the actual time
(View system services, enter services.msc in the run)Add: Make MySQL system service: mysqld--installCancellation: Mysqld--romoveThe start and stop of MySQL service can be operated directly by mouse in the servicecan also be manipulated in cmdnet
Query data for 7 days ahead:[HTML]View PlainCopyprint?
SELECT * from data table where Date_sub (Curdate (), INTERVAL 7 day)
[HTML]View PlainCopy print?
Query data for 30 days ahead:[HTML]View PlainCopyprint?
Latch locks and tlock (transaction locks), DML lock rules, and deadlock analysis in MySQL.I. The relationship between latch and TlockLatch: Designed to protect the correctness of critical resources, such as protecting the memory pages that are being
History of the simplest MySQL Data Backup and restoration tutorial (medium) (), mysql Data Backup
Data backup and Restoration:
Basic concepts:
BackupSave the existing data or records in another copy;
RestoreTo restore the data to the backup
Mysql Import and Export commands (Linux + Windows), mysql Import and ExportLinux environment:
1. First, check the mysql Data Storage path:Ps-ef | grep mysql
Ii. Enter the mysql Data Storage path found above:Cd var/lib/mysql(Data Storage path)
MySql Data backup script (not original), mysql Data Backup
Create a file xxx. bat with the following content:
@ Echo offSet hour = % time :~ 0, 2%If "% time :~ 0% % "=" "set hour = time :~ 1, 1%Set now = % Date :~ 0, 4% % Date :~ 5, 2% % Date :~ 8,
Mysql master-slave copy notes, mysql master-slave notes
I. Introduction to the test environment
The master-slave replication test environment is ubuntu + mysql5.7, the master server ip address is 192.168.71.135, the slave server ip address is 192.168
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