Current location: Hot Scripts Forums » Programming Languages » PHP » MySQL Script file


MySQL Script file

Reply
  #1 (permalink)  
Old 08-31-04, 06:35 AM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL Script file

I want to run a script file from the mysql prompt and put it in cron

But i dunno if my script file is correct., can someone tell me if it is

Quote:
USE syslog;
################
#syslog records#
################
INSERT INTO syslog_archiveTB SELECT * FROM syslog_recentTB;

TRUNCATE TABLE syslog_recentTB;

INSERT INTO syslog_recentTB SELECT * FROM syslogTB;

TRUNCATE TABLE syslogTB;

OPTIMIZE TABLE syslogTB;
OPTIKIZE TABLE syslog_recentTB;
OPTIMIZE TABLE syslog_archiveTB;

#################
#network records#
#################
INSERT INTO network_archiveTB SELECT * FROM network_recentTB;

TRUNCATE TABLE network_recentTB;

INSERT INTO network_recentTB SELECT * FROM networkTB;

TRUNCATE TABLE networkTB;

OPTIMIZE TABLE networkTB;
OPTIMIZE TABLE network_recentTB;
OPTIMIZE TABLE network_archiveTB;
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with my largest perl script. Grabbing data from a file. Sunnmann Perl 2 04-23-08 03:27 AM
script that updates a file but in many directories nick1 Perl 6 02-13-05 03:27 AM
Excel document containing records, need to save as a text file to upload to mysql bearslife PHP 1 06-05-04 03:24 AM
script that updates one file but in many directories nick1 Script Requests 0 04-27-04 12:21 PM
ZIP/RAR file comment/.diz/.nfo viewer script net4ward Script Requests 0 11-19-03 04:41 PM


All times are GMT -5. The time now is 04:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.