Mysql Command

Posted 芒果牛奶

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Mysql Command相关的知识,希望对你有一定的参考价值。

mysql Command


导出库:
mysqldump --login-path=root --single-transaction --default-character-set=utf8mb4 stargame_imge > /storage/stargame_imge_superb888.sql

导出库不包含数据:
mysqldump --login-path=root --single-transaction --default-character-set=utf8mb4 -d stargame_imge > /storage/stargame_imge_superb888.sql

导出表:
mysqldump --login-path=root --single-transaction scr8 game_asc_team_reference > /storage/game_asc_team_reference180524.sql

建库:
CREATE DATABASE stargame_imge_superb888 CHARACTER SET utf8mb4;

导入:
mysql --login-path=root stargame_imge_superb888</storage/stargame_imge_superb888.sql

创建用户:
GRANT ALL ON stargame_imge_superb888.* TO \'stargame_imge_superb888\'@\'%\' identified by \'12345624324\';


Innodb:
mysqldump --login-path=root -S /storage/mysql/data/mysql.sock  --single-transaction  phone_filter  > /storage/phone_filter1104.sql



CREATE DATABASE phone_filter;

GRANT ALL ON phone_filter.* TO \'phone_filter\'@\'%\' identified by \'42432432423423\';

mysql --login-path=root phone_filter < /storage/phone_filter1104.sql

select TABLE_SCHEMA,TABLE_NAME,TABLE_ROWS from TABLES where TABLE_SCHEMA=\'phone_filter\';

以上是关于Mysql Command的主要内容,如果未能解决你的问题,请参考以下文章

mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段

VSCode自定义代码片段——cli的终端命令大全

VSCode自定义代码片段4——cli的终端命令大全

VSCode自定义代码片段15——git命令操作一个完整流程

VSCode自定义代码片段15——git命令操作一个完整流程

VSCode自定义代码片段——git命令操作一个完整流程