first, start and exit
1, into MySQL: Start the MySQL Command line Client (MySQL's DOS interface), directly enter the installation of the password can be. The prompt at this point is:mysql>
2, Exit Mysql:quit or exit
Second, the library operation1.
PHP MySQL database common cmd command setshow databases; Display DatabaseCreate database name; Create a databaseUse DatabaseName; Select DatabaseDrop database name deletes databases directly and does not alertShow tables; Show TableDescribe
1. Export the entire database
Mysqldump-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.sql
2. Export a table
Mysqldump-u user name-P
1 InnoDB The problem of duplicate values in the self-increment columnStart with the problem and reproduce the bugUse Test;drop table t1;create table T1 (ID int. auto_increment, a int, primary key (ID)) Engine=innodb;insert into T1 values INSERT into
Nine. Cross-queryA cross-query can calculate the sum, average, count, or other sum of the data, which is calculated byTwo kinds of information are grouped: one appears on the left side of the table and the other appears at the top of the
First you should try to find out whether the mysqld daemon is dead or whether your problem is related to your customer. You can use Mysqladmin version to check how long your MYSQLD server has been performing properly, and if Mysqld is dead, you can
Original2016-08-12 Even Zhang Dbaplus community This article according to the Dbaplus community 69th period of the line to share organized, at the end of the book to send Oh ~Instructor Introductioneven ZhangData Development Engineer
Q: What is an exception?A: The program may go wrong during execution and the run-time error is called an exception.By default, when a stored procedure runs out of error, the procedure terminates immediately and the system error message is
One, Zoning Concepts
partitions allow multiple portions of a single table to be allocated across the file system according to the specified rules. Different parts of the table are stored as separate tables in different places. MySQL has been
This article is a MySQL database insert, UPDATE, delete and replace statements in the use of detailed analysis of the introduction, the need for friends to refer to the
MySQL database insert and UPDATE statements Introduction: The SQL used to
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.