一、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
时间: 2024-10-06 11:17:51