mysql8.0 supplement

First, the database import and export

mysqldump - U root - the p-db1 > db1.sql; # Export
the mysqldump - U the root - P DB2 < db1.sql; # Import

二、auto_increment

# Create a table format View
show create table blog \G;
# Set initial value from value-added
alter table blog AUTO_INCREMENT=1;

Third, see the column and its settings

desc TB1;

 

Guess you like

Origin www.cnblogs.com/wt7018/p/11099202.html