One, data type
1. Integral type
Data type storage space description range of values
TINYINT1 byte very small integer with symbolic value: -128~127
Unsigned value: 0~255
SMALLINT2 byte small integer with symbolic value: -32768~32767
Unsigned
Note: master- slave synchronization cannot replace database backupsFor example, if we mistakenly delete a table on the main database, then the corresponding operation from the database, if there is no backup, this will result in deleted data can not
1, automatic installation and deployment of MySQL, if the MySQL has been installed to determine whether the version is lower than the main library (there is a backward-compatible problem)2, get the main library backup files and binlog information
The operation of the memcache is usually put inside the program to operate, add, UPDATE, delete what. If you can use MySQL to operate on memcache, that's better, the code side will be simpler. However, the use of MySQL to operate memcache, more
A CENTOS6+NGINX+MYSQL+PHP-FPM environment was installed in the virtual machine yesterday, recording the installation process. CENTOS6 recommends installing in a netinstall manner, installing a minimized server, and configuring the site environment,
Bidirectional encryptionLet's start with the simplest encryption: bidirectional encryption. Here, a piece of data is encrypted by a key that can only be decrypted by someone who knows the key. MySQL has two functions to support this type of
SQL Category:ddl-Data Definition language (create,alter,drop,declare)dml-Data Manipulation Language (Select,delete,update,insert)dcl-Data Control Language (Grant,revoke,commit,rollback)
First, briefly introduce the underlying statement:1,
For most programmers, the most easily discovered and solved problem is MySQL's slow query or no indexed query, so here's how to use the official Mysqldumpslow tool to easily view this information. How to open a slow query for MySQL,MySQL Slow query
1, set access to individual database permissions
The code is as follows
Copy Code
Mysql>grant all privileges in test.* to ' root ' @ '% ';
Note: Set user name as root, password is blank, access to database test
Demo data
Table structure:
The code is as follows
Copy Code
Mysql> DESC Demo; +-------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------
1, under Windows;
2, PHP service Manager WAMP5;
Apart straight to the point:
1, open Task Manager, end process Mysqld-nt.exe as shown:
2. Run Command Window
1, in the PHP Service Manager installation directory in the bin directory (my:
Mysql> select * from Tt_address;+-----+-----+--------+--------+------+--------+------------+-------------+-----------+----------+-------+------------------------+-------+--------+-----+---------+----------+------+---------+------+-----+--------+-----
MySQL almost simulates most functions of a commercial database such as Oracle,sql server, functions. Unfortunately, the current version (5.1.33) has not yet implemented the RowNum feature.
Here are some specific implementation methods.
The
The condition definition and processing of stored procedures can define the problems encountered during the process of processing.
The definition of a condition
DECLARE condition_name Condition for Condition_vale
Condition_value:
Sqlstate[value]
To optimize your query, you should avoid all table scans, and you should first consider indexing the where and the columns involved.
2. The null value of the field in the WHERE clause should be avoided as far as possible, or it will cause the
1. What are stored procedures and functions
mysql tutorial stored procedures and functions are in advance, edited and stored in the database tutorial a set of SQL, call stored procedures and functions can simplify the work of application developers,
MySQL password We do not often modify, but sometimes we will forget the password needs to be modified, but also change the password for their own easier to remember! Here are two ways to change the MySQL password
Method One:
This method
After a full day, I finally figured out how to configure the MySQL database connection pool in Tomcat 5.5. The online experience cannot be fully used in the new environment, I wrote the entire process for your convenience.1. Environment
This is why I transferred my website from one server to another. Let's take a look at the reason.Find the confing. inc. Php file.// [CH] modify the following variables based on the account parameters provided by the space provider. If you have any
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