mysql5.0认识了一个星期,想总结一下
第一步:
认识了mysql5.0的安装,修改密码,建数据库,导入和导出;
导入和导出:具体操作的过程,现在数据库中建一个库,再建个表,然后#mysqldump -uroot -p --opt 库名>备份的名字.sql;
导入时先建库名,#mysqladmin -uroot -p create 库名;
#mysql -uroot -p 库名<备份的名字.sql;
第二步:系统常用的show命令;
SHOW CHARACTER SET Syntax
SHOW COLLATION Syntax
SHOW COLUMNS Syntax
SHOW CREATE DATABASE Syntax
SHOW CREATE TABLE Syntax
SHOW CREATE VIEW Syntax
SHOW DATABASES Syntax
SHOW ENGINES Syntax
SHOW ERRORS Syntax
SHOW GRANTS Syntax
SHOW INDEX Syntax
SHOW INNODB STATUS Syntax
SHOW LOGS Syntax
SHOW PRIVILEGES Syntax
SHOW PROCESSLIST Syntax
SHOW STATUS Syntax
SHOW TABLE STATUS Syntax
SHOW TABLES Syntax
SHOW VARIABLES Syntax
SHOW WARNINGS Syntax
SHOW COLLATION Syntax
SHOW COLUMNS Syntax
SHOW CREATE DATABASE Syntax
SHOW CREATE TABLE Syntax
SHOW CREATE VIEW Syntax
SHOW DATABASES Syntax
SHOW ENGINES Syntax
SHOW ERRORS Syntax
SHOW GRANTS Syntax
SHOW INDEX Syntax
SHOW INNODB STATUS Syntax
SHOW LOGS Syntax
SHOW PRIVILEGES Syntax
SHOW PROCESSLIST Syntax
SHOW STATUS Syntax
SHOW TABLE STATUS Syntax
SHOW TABLES Syntax
SHOW VARIABLES Syntax
SHOW WARNINGS Syntax