The server uses mysql_real_escape_string to clean the client data bitsCN.com.
Because mysql_real_escape_string requires MySQL database connection, you must connect to the MySQL database before calling mysql_real_escape_string.
PHP:
Function
How to configure the MySQL learning notes bitsCN. comMYSQL database:
Generally, you just need to modify my. ini and point it to the Database Directory.
Liu Yongfa (yongfa365) Blog has tested the simplest method:
1. net stop mysql
2. open C: Program
Mysql loadfile () common usage bitsCN.com
1. replace (load_file (0 × 2F6574632F706173737764), 0 × 3c, 0 × 20)
2. replace (load_file (char (47,101,116, 115,115,119,100,), char (60), char (32 ))The above two items show the full code in a php file.
Mysqlcluster first experience bitsCN.com
1. prepare the serverNow we plan to establish a MySQL CLuster system with five nodes, so we need five machines for the following purposes:
Node (purpose) IP address (host name)Management Node (MGM) 192.168.0.1
Comparison of mysql time types bitsCN.com
SameDisplay
The display format of the TIMESTAMP column is the same as that of the DATETIME column. In other words, the display width is fixed to 19 characters and the format is YYYY-MM-DD HH: MM:
Mysql database bidirectional synchronization hot standby bitsCN.com
Environment:
Master server: 10.224.194.239
Slave server: 10.224.194.237
Steps:
1. create backup users in Master/Slaver mysql db respectively:
Grant file on *. * TO backup@10.224.19
MySQL tuning bitsCN.com
Optimization and optimization:
1. database design and planning-it will be difficult to fix it later, estimate the data volume and what storage engine to use
2. data application-how to retrieve data and optimize SQL
Cute usage of MySQLreplaceinto (enhanced version of insertinto) bitsCN.com
When inserting data into a table, you often encounter this situation: 1. First, determine whether the data exists; 2. if the data does not exist, insert the data; 3. if the
MySQL remote access authorization and quick repair of bitsCN.com
> Grant all on *. * to root @ '%' identified by '20140901 ';> Flush privileges;MySQL remote access authorization and quick fixMySQL remote authorization# Mysql-uroot-p> GRANT all
Use Jorm to add, delete, query, and modify the database bitsCN.com
> PreparationTake MySQL as an example. execute the following SQL statement to create a data table.Create table 't_ user '('Id' int (11) not null,'Name' varchar (50) default null,'Sex
MySQL percentage bitsCN.com
The report business requires that the percentage of fields in the table be calculated. the SQL statement is as follows (the SQL table is my business table and must be changed ):Mysql codeSELECT biz_type, round
Mysql optimization (1) show command slow query log explainprofiling MySQLexplain
BitsCN.com
Directory
I. Optimization overview
II. query and index optimization analysis
1. performance bottleneck locating
Show command
Slow query log
Explain analysis
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 replication (2) --- bitsCN.com
As we can see from previous articles that binary logs play an important role in replication, this article focuses on the core component behind Mysql replication: the true nature of binary logs.Binary log
MySQL source code learning-DBUG debugging bitsCN.com
I. Preface
In projects with a relatively large scale, to quickly locate bugs, we often need to add some debugging code to the code, such as adding some printf, print some key information; add
Amp; quot; checkingfortermcapfunctionslibrary... The following error occurs when installing and compiling mysql:
Checking for tgetent in-ltermcap... No
Checking for termcap functions library... Configure: error: No curses/termcap library found
It
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
Mysql copies the table structure, table data bitsCN. com1, and copies the table structure and data to the new table.
Create table new table select * FROM old TABLE
This method will copy all content in oldtable. of course, we can use delete from
MySQL slow query supports setting bitsCN.com in milliseconds
MySQL slow query supports millisecond settings MySQL slow query itself does not support the ms level (requires patching), but for MySQL 5.21 +, the minimum value of long_query_time is 0
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