标签:
一、cmd操作mysql
1.进入mysql
mysql -h localhost -u root -p + enter
>enter password:root
2.简单mysql命令
create database db_name
create table table_name(field_name field_type)
show databases/tables
describe table_name
2.sql文件导入导出
导入:source file_path
导出:mysqldump -h localhost -u root -p db_name > file_path
标签:
原文地址:http://www.cnblogs.com/begin-zero/p/5424804.html