Home >Database >Mysql Tutorial >mysql-免安装MYSQ 不设置环境变量 怎么通过Bat导入建表SQL

mysql-免安装MYSQ 不设置环境变量 怎么通过Bat导入建表SQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:44:481230browse

mysqlbat

@@echo off

set /p errorlevel=0

set /p path_home_mysql=G:\JTM\mysql\
/* MySQL安装的BIN目录 (双引号不能少) 特别是注意空格 */
set /p path_bin_mysql="G:\JTM\mysql\bin\mysqldump.exe"

echo %path_bin_mysql%
/* 服务器IP地址 /
set /p database_address=localhost
/
数据库名称 /
set /p database_mysql=DMP
/
用户名 /
set /p user_mysql=root
/
密码 /
set /p password_mysql=root
/
文件的存放路径及名称 */
set /p file_path=G:\JTM\mysql\data\init_DMP.sql

%path_bin_mysql% -h%database_address% -u%user_mysql% -p%password_mysql%

echo end backup

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