怎么用批处理*.bat 执行文件目录下面的mysql语句脚本,我执行后为什么闪退,求大婶指教。 5
@echooffseterrorlevel=0setpath_home_mysql="C:\ProgramFiles\MySQL\MySQLServer5.0\"setp...
@echo off
set errorlevel=0
set path_home_mysql="C:\Program Files\MySQL\MySQL Server 5.0\"
set path_bin_mysql=%path_home_mysql%bin\
set database_mysql=test
set user_mysql=test
set password_mysql=test
%path_bin_mysql%mysql -u%user_mysql% -p%password_mysql% %database_mysql%<D:\test_3.sql
test_3.sql的内容
CREATE TABLE `test`.`userinfo` (
`user_id` char(16) NOT NULL default '' COMMENT 'NotesID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8; 展开
set errorlevel=0
set path_home_mysql="C:\Program Files\MySQL\MySQL Server 5.0\"
set path_bin_mysql=%path_home_mysql%bin\
set database_mysql=test
set user_mysql=test
set password_mysql=test
%path_bin_mysql%mysql -u%user_mysql% -p%password_mysql% %database_mysql%<D:\test_3.sql
test_3.sql的内容
CREATE TABLE `test`.`userinfo` (
`user_id` char(16) NOT NULL default '' COMMENT 'NotesID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询