473,320 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ASP mysqldump problem

1
hi, i've done a coding which to backup mysql using ASP.
n i use Wscript to implement the command.
the result tat i got is an empty sql file which means it has no data inside.
may i know wat's error is it?

Expand|Select|Wrap|Line Numbers
  1.     <%
  2.     Const strMYBackup="c:\backup\"
  3.  
  4.     Const strMYLocation = "c:\program files\mysql\mysql server 4.1\bin\"
  5.  
  6.     Const strMYPassword = "root"
  7.  
  8.     Const strMYUser = "root"
  9.  
  10.     Const dbname= "test2"
  11.  
  12.     strBackup = formatdatetime(now,2)
  13.  
  14.     strbackup = right("0" & replace(strbackup,"/",""),8)
  15.  
  16.     Dim oShell
  17.     Set oShell = CreateObject("WScript.Shell")
  18.  
  19.     oShell.run "cmd /C " & strMYLocation & "mysqldump -skip-lock-tables --h=localhost -u root --password=root test2> " & strMYBackup & "dbBkup" & strBackup & dbname & ".sql",,true
  20.     Set oShell = Nothing
  21.  
  22.     response.write("haha")
  23.     %>
  24.  
Sep 22 '06 #1
0 1203

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Terry A. Haimann | last post by:
I have an application, DipperBase, that keeps astronomical images in a mysql database. The actual images are stored in a blob field. To get some test data, I downloaded some SEDS images of...
7
by: Adam Smith | last post by:
Hope this is the right news group!! I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16 mach1# mysql --version mysql Ver 12.22 Distrib...
0
by: Adam Smith | last post by:
Hello, I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16. Essentially, moving from one machine to another. The dump consists of a cluster of...
0
by: mcstayinskool | last post by:
I'm trying to dump a bugzilla installation to a file, then restore it to a different database name (so as to test my db backup system). I use mysqldump to dump it to a file: # mysqldump -u root...
1
by: Dave Crypto | last post by:
Hi there, SUMMARY: 1) When I use phpadmin to export a large database, the file created on my local PC never containes all the tables and information. It seems to max out at about 10mb. 2)...
1
by: Greg.Harabedian | last post by:
I'll start off by saying I am using MySQL v4.0 and my question is...how do I get mysqldump to dump the actual binary values store in a blob? Here is an example: -- Create a test table create...
6
by: Antoni | last post by:
Hello, I'm trying to make a daily database backup. When executing "mysqldump - uxxx -pxxx database /home/backup/ddbb.sql -q &" the httpd server gets blocked and my site is "offline" for 30...
7
by: grace | last post by:
hi everyone! i am having a problem with mysqldump.i am running this script from the shell root@linuxserver:/usr/local/mysql#bin/mysqldump u im_backup --opt inventory /home/all/sqlbu/inv_'date...
2
by: dev2746 | last post by:
Hi :-)..............., I am having a problem with mysqldump with mysql 5.0.27 installed on a win xp pro sp2. I just want to do a simple backup of all my databases. I have xp installed in the D...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.