Home >Database >Mysql Tutorial >mysql 执行sql文本文件_MySQL

mysql 执行sql文本文件_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:30:20975browse

bitsCN.com

备份或者还原数据库的时候经常会用到批量的文本文件,保存为sql文本文件,还原数据时候在Window平台和Linux平台下的执行方法:

1:Window,cmd命令执行,进入到MySql安装目录 例如D: cd Program Files/MySQL/MySQL Server 5.5/bin,回车  然后mysql -uroot -p123456 test

2:Linux, mysql -uroot -p123456 test

E:test.sql为生成文本文件

 

 

bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn