MySQL self-increment primary key zeroing method:
If none of the previous data is needed, you can simply empty all the data and count the self-increment field recovery starting at 1:
TRUNCATE TABLE table_name; 2. When the user does
CentOS6.5 installation configuration MySQL, the configuration method is as follows:
To install the MySQL database:# yum install-y mysql-server MySQL Mysql-deve
View Mysql-server version:# Rpm-qi Mysql-server
Initialize MySQL
Not a null constraint.The NOT NULL constraint can only be declared after the column name, cannot be declared with the constraint statement, and of course there is no way to declare the constraint name. The change field is NULL or NOT NULL only with
1. The operation of MySQL database, before changing the configuration file, add and modify data, the full library script to export the backup and physical file export work, in case the operation error. If the operation goes wrong, you can quickly
with Amoeba Mates MySQL Master-Slave construction MySQL read/write separation1 MySQL master-Slave configurationMySQL master192.168.11.177MySQL slave192.168.11.178Amoeba host 192.168.11.179On both virtual machinesYum Install MYSQLMYSQL-SEREVR
Original address: http://blog.csdn.net/gamesofsailing/article/details/21465327After successfully installing PYTHON-MYSQL, start configuring the Django MySQL connection configurationOpen the setting.py file under the Django Project and change the
For MySQL databases , you must use the INNODB engine If you want to use transactions and row-level locks. If you want to use full-text indexing, you must use MyISAM. InnoDB is more practical, safer, more stable but less efficient than MyISAM, but
Master-slave replication One, How master-slave replication works MySQL the process of implementing the entire replication between master and slave is done by 3 threads, of which two threads (SQL thread and IO thread)
Wamp after the installation, MySQL password is empty, then how to modify it? Actually very simple, through a few instructions on the line, below I step by step to operate.First, open the MySQL console via Wamp.Prompt for the original password, if it
In the IT interview, the related problems of database are basically the required questions, and the SQL statement is also an important point of knowledge frequently inspected.The following describes a more important operation in the SQL statement
Explain profilingIt is recommended to provide the following informationShow table status like ' audit ';Show create table audit;Show index from audit;Check table audit;Analyze table audit;Analyze does not check the table for problems, just
master:192.168.209.19slave:192.168.209.20MySQL version: mysql5.6.131. Create a normal user as root, such as MySQL, and create the MySQL installation directory:# useradd MySQL# passwd MySQL# Mkdir/mysql# chown Mysql:mysql/mysqlTo install a dependency
Mysql database operations groupby
During the IT interview, database-related questions are basically mandatory, and SQL statements are also an important knowledge point that is frequently investigated.
Next we will introduce an important operation
MySql Chinese garbled problem (3)
The MySql client is on the dos interface, but the default character set encoding method on the dos interface is: GBK
(1) MySql character conversion Principle
(2). view all the encoding methods of the server:
The value range of TINYINT in mysql, and that of mysqltinyint
In MySQL, the value range of Tinyint is-128 to 127. The unsigned range is 0 to 255 (see the official MySQL 5.1 reference manual
Php-based connection to mysql database and data query, php-based mysql database
There are three methods to connect to the database:
1. General method:
$ Con = mysql_connect ($ dbhostip, $ username, $ userpassword) or die ("Unable to connect to the
How to execute dynamic SQL statements in MySQL stored procedures
Drop PROCEDURE if exists my_procedure; create PROCEDURE my_procedure () BEGIN declare my_sqll varchar (500); set my_sqll = 'select * from aa_list '; set @ ms = my_sqll; PREPARE s1
How does mysql Merge multiple rows into one row and mysql multiple rows?
Select group_concat (list_name) from aa_list
How to merge multiple rows of data into one row in excel
If you want to merge data of A1, A2, and A3 into one row, enter the
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.