Can we execute mysql queries from MSDOS batch files?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
thamizhchelvan
Forum Newbie
Posts: 23
Joined: Tue May 08, 2007 2:50 am

Can we execute mysql queries from MSDOS batch files?

Post by thamizhchelvan »

Hi,

Can we execute mysql queries from MSDOS batch files?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yes. The question is, why?
thamizhchelvan
Forum Newbie
Posts: 23
Joined: Tue May 08, 2007 2:50 am

Post by thamizhchelvan »

feyd wrote:Yes. The question is, why?
I want to execute a set of queries by a single click,thats why. Can u give me a code sample for this?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Code: Select all

if (isset($_GET['do']) && $_GET['do'] == 'run_queries')
{
    // run queries here
}
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

@astions: what has that got to do with this thread?
Post Reply