If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > how can call query file?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-04, 03:43
kartheeee kartheeee is offline
Registered User
 
Join Date: Jul 2004
Posts: 7
Question how can call query file?

i hav stored some queries in one file ,
i want execute that? how?

eg: tables.txt

create table sample1( myname char(10));

create table sample2( urname char(10));

.....


like that.
Reply With Quote
  #2 (permalink)  
Old 07-16-04, 11:54
jake5929 jake5929 is offline
Registered User
 
Join Date: Jul 2004
Posts: 4
If you have php installed, use QLR Manager, found at www.qlrmanager.com. It allows you to write / save and run queries (batch queries as well). In addition, it's does report formatting.

It's a server based tool, so no client code to install.

Jake
Reply With Quote
  #3 (permalink)  
Old 07-16-04, 14:15
ServerMetrics ServerMetrics is offline
Registered User
 
Join Date: May 2004
Posts: 45
Just use the mysql command line tool, as in;

mysql -u username -p password dbname <tables.txt
__________________
Keith Brownlow
ServerMetrics DB Monitoring (www.servermetrics.com)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On