1. Create a data table --- BASICS (skipped by experts) Orthodox method: create [TEMPORARY] table name [if not exists](Column item definition created)[Table options][Partition options]; # The Orthodox creation method. For specific parameters, refer
[Mysql] storage and optimization of text blob large fields in InnoDB Storage engine, innodbblob
Recently, during database optimization, we can see that some tables use text or blob fields in design, and the storage space of a single table has
Summary of the most common MySQL statements
The following are some of the commands I have been using over the past few days. Write them down first and I will sort out a detailed mysql usage document.Note: [] indicates the name, which must be
Basic knowledge of MySQL storage engine and basic knowledge of mysql Engine
We mentioned MySQL transactions in previous articles. Now everyone should know about MySQL transactions. Do you still remember the ACID principles of transactions? If you do
Mysql database Quick Start (1), mysql database Quick Start1. Database Operations
1.1 connect to the mysql server
Mysql-u root (User Name)-p
1.2 exit the mysql Command Prompt window.
Exit
1.3 view version
Select version ();
1.4 list databases
Show
How do you feel if you are a racing driver and you can immediately change the engine without driving your car to the garage? What MySQL database does for developers is like changing the engine by pressing a button. it lets you select a database
MySQLShow command prompt: MYSQL Tutorial: MySQL Show command.
Show tables or show tables from database_name;Explanation: displays the names of all tables in the current database.
Show databases;Explanation: displays the names of all databases in
1. check the size of all databases under the database instance. The result is in MB mysqlselecttable_schema, sum (data_length) 10241024asdata_length, sum (index_length) 10241024asindex_length, sum (data_length + inde .. 1. check the size of all
MySQL character set: methods that do not contain garbled characters there are many types of character sets in the database. The main impact on programming is the client character set and database character set (there is also a server character set,
MySQL obtains table information. MySQL obtains table information.
mysql> use test;Database changedmysql> show table status;+---------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+------
Here are a few of the commands I've been using for the past few days, and I'll start with a detailed MySQL documentation.
Note: [] represents a name, you need to replace it with a library name or a table name
To display all libraries:
show
This article mainly introduces the method of currency conversion in PHP, describes the implementation method of currency conversion in details in the form of examples, and illustrates the specific usage by taking the pound into the dollar as an
Six types of mysql data tables
MySQL data tables support six types: BDB, HEAP, ISAM, MERGE, MYISAM, and InnoBDB.
These six types are divided into two categories: transaction-safe, including BDB and InnoDB, and the other are in the second category,
The MySQL database MyISAM storage engine is converted to Innodb. when the mysql database storage engine is MyISAM, data tables may be locked in the case of high traffic volumes, this will cause users to return 502 when they connect to the website.
This article mainly explains the mysql commands in centoslinux (redhatlinux). If your mysql is installed in source code, I add the "mysql installation directory bin" to the path environment variable, mysql startup script has been copied to etcinit.
My experiences in MYSQL (8) my experiences in MYSQL (8)
My experiences with MYSQL (1)
My experiences with MYSQL (2)
My experiences with MYSQL (III)
My experiences with MYSQL (4)
My experiences with MYSQL (5)
My experiences with MYSQL (6)
My
Using hard links to delete MySQL large files in seconds bitsCN.com
Using hard links to delete large MySQL files in seconds
Principle:
Hard link basics
When multiple files point to the same inode, inode connections N> 1, deleting any file is
Php calculates the size of the entire mysql database
Php calculates the size of the connected mysql database, which is returned in MB, KB or GB format.
Function CalcFullDatabaseSize ($ database, $ db ){
$ Tables =
The usage of the MySQLshow command can easily display some information in dos.
The MySQL show command is used to conveniently display some information in dos.
Show tables or show tables from database_name; // display the names of all tables in the
The storage engine is a MySQL component used to process SQL operations on different types of tables. It is also known as the table type. MySQL supports multiple storage engines. For Example, the latest MySQL5.6 supports nine storage engines,
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.