Common MYSQL commandsStart: net start mySql;Enter: mysql-u root-p/mysql-h localhost-u root-p databaseName;List databases: show databases;Select Database: use databaseName;List tables: show tables;Show columns from tableName;Create a database: source
Viewing MySQL databases is one of our most common operations. The following describes frequently used commands for viewing MySQL Databases in detail. If you are interested in viewing MySQL databases, take a look.
Go to MySQL Command line clientView
Getting started with MySQL-Quick Reference
Getting started with MySQL-Quick Reference
I. SQL Quick Start
The following is an important quick reference for SQL. For SQL syntax and features added to standard SQL, please query the MySQL manual.
1.
MySQLDatabaseEXPLAINThe usage and precautions are the main content we will introduce in this article. Next let's take a look at this part.
1. EXPLAIN tbl_name is a synonym for DESCRIBE tbl_name or show columns from tbl_name.
2. EXPLAIN [EXTENDED]
The following articles mainly describe the actual operation steps of the MySQL command to view the table structure. The detailed analysis of the specific solution is as follows, it is expected that you will be able to learn the actual operation
Common mysql commands and common mysql system commands
Recently, some mysql commands were often used during my internship, so I made some preparations:
Solve the character garbled problem: display Chinese characters rather than garbled characters:
"Zero-Distance Access to mysql" study notes, zero-Distance Access to mysql
1. add, delete, modify, and query data tables (crud ):
For tables:
Add: create table XXXX
Delete: drop table XXXX
Change: alter table XXXX rename to XXXX
Query: select * from
Create such a model in the model. Do not pirated the methods for obtaining enumeration classes written in it. Add the source blog for reprinting. csdn. netyanlintao1classStudentextendsZend_Db_Table {protected $ _ namestudent; protected $ _ primaryid;
The MySQL EXPLAIN statement can obtain information about how MySQL executes the SELECT statement. The following describes how to use this statement for your reference.
EXPLAIN tbl_nameOr: EXPLAIN [EXTENDED] SELECT select_options
The MySQL EXPLAIN
This article mainly introduces the backup and restoration class for php databases. For more information, see
The code is as follows:
/*** Database backup and restoration* @ Author xialeistudio* Class DatabaseTool*/Class DatabaseTool{Private $
Learning notes for MySQL required: 1 # select a database
USE mysql
# Back to the list of available databases
SHOW DATABASES
# Return the available tables in the current database
SHOW TABLES
# Return table columns
Show columns from db
#
Summary of basic MySQL commands and common commands bitsCN.com
Start: net start mysql;Enter: mysql-u root-p/mysql-h localhost-u root-p databaseName;List databases: show databases;Select database: use databaseName;List tables: show tables;Show
Mysql statement commands in linux
BitsCN. com1.linux:
Mysqladmin start
/Ect/init. d/mysql start (the installation path of mysql is earlier)
2. command for restarting mysql in linux:
Mysqladmin restart
/Ect/init. d/mysql restart (the installation
Learn the problems and solutions for using mysql. bitsCN.com
Learn the problems and solutions for using mysql
The installation fails at the end and no response is returned. it doesn't matter. The previous installation is successful, but it is not
A, database-level operation 1, login mysql commonly used 26684; type is mysql-uuser_name-p press enter and enter the password again to enter. 2. View all existing databases showdatabases. 1. Database-level operations
1. log on to mysql
The common
MySQL Getting Started Guide-quick reference (2) II. MySQL User Guide
1. use MySQL to create a new database
Run in shell:
$> Mysqladmin create database01
Database "database01" created.
2. start MySQL
Run in shell:
$> Mysql
Welcome to the MySQL
MySQL experience 3-bitsCN.com 1. compared with Interface Operations, SQL statement operations are more flexible and powerful. Set character_set_client = gb2312; set character_set_results = gb2312; 2. once the database and table are created, the next
This is a basic tutorial. No weird code, just some basics. Now there are a lot of tutorials that are based on Unix machines, and this tutorial will focus on Windows-based platforms.
However, in addition to the installation section, there are more
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.