Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » help me create a batch file
Closed Thread
Old 11-05-2004, 04:06 AM   #1 (permalink)
 
Newb Techie

Join Date: Nov 2004

Posts: 2

mksingh79

Unhappy help me create a batch file

i have to create a batch process to populate my mysql tables with data from a file

this is what i normally do
i open the mysql prompt(just like dos prompt exe)
and get

mysql>

now i type"use tms;"

mysql> use tms;

this selects the database
and i get "database changed"

then i do this

mysql> source /path/to/file/test.sql;

this read the file and puts the data into the table.
and then

mysql> exit

i dont know batch programming
but i did this

@echo off
call C:\mysql\bin\mysql.exe

so i get to the mysql prompt but then how do i do the rest??

thanks
mksingh79 is offline  
Old 11-08-2004, 01:36 AM   #2 (permalink)
 
Newb Techie

Join Date: Nov 2004

Posts: 2

mksingh79

Default

i got it
mksingh79 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On