MySQL常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
Development Log: Add comments for tables and columns when creating a table in mySQL, and view comments for tables and columns.
Development Log: add notes for tables and columns when creating a mySQL table, and view the notes for tables and columns _
MySQL creates a table and creates a . frm file to save the table and column definitions. The index is stored in one . MYI (Myindex) and the data is stored in the . MYD (MYData) file extension. First, using Show/describe statement to display the data
When creating a table, MySQL creates a. frm file to save the table and column definitions. Indexes are stored in a file with the. MYI (MYindex) Extension and data is stored in a file with the. MYD (MYData) extension.
1. Use the SHOW/DESCRIBE
Show DATABASES: lists the DATABASES on the mysql Server. Show tables [FROM db_name]: Lists TABLES in a database. Show table status [FROM db_name]: lists the TABLE information of a database. Show columns from tbl_name [FROM db_name]: lists the column
MySQL adds, modifies, and deletes TABLE columns and constraints. TABLE definitions such as bitsCN. comALTER TABLE: adds, modifies, and deletes TABLE columns and constraints.
View column: desc table name;
Alter table t_book rename to bbb;
Add column:
ALTER table: Add, modify, delete table columns, constraints, and other table definitions.
View column: Desc table name;
Modify table name: ALTER TABLE T_book Rename to BBB;
Add column: ALTER TABLE name add column name varchar (30);
Delete column:
Original source: MySQL 5.5 Reference ManualPart of the translation: "mysql_5.1 Chinese reference Manual"Reprint please specify the original link http://www.cnblogs.com/lenagt/archive/2012/06/06/2538201.html Thank you.---------------------------------
System LockShow processlistStatus entries in Show Processlist output: 5.1 None of the manuals, or the translation of the problem, are accompanied by 5.5 original description:After createThis occurs when the thread creates a table (including internal
mysql| Security | Security as a MySQL system administrator, you are responsible for maintaining the data security and integrity of your MySQL database system. This article mainly describes how to build a secure MySQL system, from the system internal
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.