With regard to the benefits of MySQL indexing, if the correct and reasonable design and use of the index MySQL is a Lamborghini, then there is no design and use of the index MySQL is a human tricycle. For tables with no indexes, a single table query
MySQL timestamp type and time zone
MySQL's timestamp type time range between ' 1970-01-01 00:00:01 ' and ' 2038-01-19 03:14:07 ', exceeding this range the value is recorded as ' 0000-00-00 00:00:00 ', an important feature of this type is that the
Here to introduce xampp modify the MySQL default password probably the process is to use the XAMPP phpMyAdmin into the modified MySQL password, modify the XAMPP after we modify the password phpMyAdmin, so that the complete revision of the MySQL
MySQL in the index is very important knowledge points, compared to other knowledge points, the index is more difficult to grasp, and MySQL in the index of a lot of types, such as primary key, unique key and index, etc., this article to introduce you
This article shares the MySQL stored procedure that modifies the table name to uppercase, as follows
1. Conditions:1.1 MySQL settings are case sensitive2. Execute the following stored procedures:
#call uppercase (' Library name ') DROP
MySQL's InnoDB expansionin order to add a data file to the tablespace, first close the MySQL database, edit the my.cnf file, confirm the InnoDB ibdata file and MY.CNF configuration is consistent, there are two situations:Configuration of 1.MY.CNF
(1) Linux systemYou can reset the MySQL password to Diavps by executing the following command in SSH
Copy Code code as follows:
Rm-f Reset-mysql-root-password.phps
wget Http://down.hostwiki.info/mysql/reset-mysql-root-password.phps
2.1 Login to MySQL console [username is root, password defaults to NULL]
Switch to MySQL's Bin directory cd D:/wamp/mysql/bin
Login to MySQL Console
Syntax: mysql-h hostname-u username-p
Connecting to another host
Code: Mysql-h 192.168.1.1-u
How to use
Mysql>show table status;
Mysql>show table status like ' Esf_seller_history ' \g;
Mysql>show table status like ' esf_% ' \g;
Sample Example:
Mysql>show table status like ' Esf_seller_history ' \g;
1.Name
Table
Mysqlworkbench is a recently released Visual Database design tool for MySQL AB. This tool is a dedicated tool for designing MySQL databases.
Download Address: http://www.jb51.net/database/29494.html
Mysqlworkbench has many functions and features;
The example of this article summarizes the various operation commands used by MySQL. Share to everyone for your reference, specific as follows:
MySQL installation directory
Database directory
/var/lib/mysql/
Configuration file
/usr/share/mysql (
The max () function of MySQL is used to find a record of the maximum value in a recordset.
The EMPLOYEE_TBL table that you want to know about Max functionality has the following records:
Mysql> SELECT * from EMPLOYEE_TBL;
+------+------+----
MySQL's subquery optimization has been not very friendly, has been criticized by the industry more than I have encountered in the SQL optimization of one of the most problems, you can click here, here to get some information, MySQL processing
MySQL Common commands1. Export the entire databaseMysqldump-u user name-p--default-character-set=latin1 Database name > exported file name (database default encoding is latin1)Mysqldump-u wcnc-p SMGP_APPS_WCNC > Wcnc.sql2. Export a tableMysqldump-u
MySQL has a lot of ways to import data, but these are only half of that data transfer, and the other thing is to export it from the MySQL database. There are many reasons why we need to export the data. One important reason is to back up the
The data types and sizes in the database store are different. Some places store only numeric types, some store only text types, and some both. Many databases support a variety of specialized types: date and time types, binary character types, and
In the previous section, a cross-host Docker container cluster was built by using the overlay network. Below, in this cross-host Docker container cluster environment, build MySQL database cluster.MySQL master-slave automatic backup and automatic
Simple introduction MySQL dual-machine, multi-machine remote hot standby simple principle of actual combat.The concept of dual-machine hot standby simply say, is to maintain the status of two databases automatically synchronized. Operations on any
First, MySQL change Password method:1. Modify with Mysqladmin#mysqladmin-uroot-p password ' newpass ' Enter password: note: If it is the first time to change the password, prompt enter password: Direct carriage return if it is reset password, prompt
1/isamISAM is a well-defined and time-tested form of data management that, at design time, takes into account that the number of times the database is queried is much larger than the number of updates. As a result, ISAM performs read operations
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