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 > Column Type for Shell Script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-09, 11:42
sunfire sunfire is offline
Registered User
 
Join Date: Aug 2003
Posts: 19
Column Type for Shell Script

Hello,
I have a need to store a shell script or two in each database records. What is the best way to store the shell script data in the database? I guess I wanted to know if it makes more sense to just store the text of the script or store it as a file in a blob? Oh yea, the data will only be accessed via web services.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-03-09, 12:26
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Quote:
Originally Posted by sunfire
What is the best way to store the shell script data in the database?
I can't see any advantage to using a blob so I'd say use a character field. Whether you use a large varchar or a text field depends on the size of your scripts. Saying that it may be better to just keep your shell programs in the file system and then just store the name of the script and the params it takes in your database.
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