473,383 Members | 1,846 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,383 software developers and data experts.

Batching Multiple commands in mysqlimport

What can I do to make this series run as like an executable? (I type
in the file name and it runs these 9 mysqlimport commands)

mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
CndF
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
CndM
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
ComF
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
ComM
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
LlfF
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
LlfM
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
MulF
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
MulM
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
ResF
mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R
ResM

I'm looking to do a series of jobs similar to this, and then schedule
them as a crontab job.

thanks for your tips. I appreciate it.

D
Jul 20 '05 #1
0 2071

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Daniel Kasak | last post by:
Hi all I have some data in Excel ( I didn't put it there - a customer did ). I'm setting up an import routine for it, with an Access front-end. I don't like the way Access imports Excel files,...
0
by: gord barq | last post by:
Hi, I'm importing ~2000 rows using mysqlimport with the following syntax: mysqlimport -d -v --ignore -u root -p .txt Connecting to localhost Selecting database Deleting the old data...
0
by: lynn | last post by:
Hello, I am installing some databases on the mysql databases of my mac osx 10.2.8 but when I do "mysqlimport -u X -p W (directory) *.txt.table" I am getting this answer: mysqlimport: Error:...
0
by: Dobsons | last post by:
What can I do to make this series run as like an executable? (I type in the file name and it runs these 9 mysqlimport commands) mysqlimport -df --fields-enclosed-by='"' --fields-terminated-by=, R...
0
by: Joseph Hill | last post by:
Hi I have a 300MB CSV file in with data in the following fashion: "AB10 1AF","39410","80640","QA28","SN9","Castlehill","Aberdeen City","Grampian","","49998","Not applicable","" "AB10...
0
by: Yuancai \(Charlie\) Ye | last post by:
Hi, All: I am happy to annouce that we have formally released our latest SocketPro version 4 at www.udaparts.com, an advanced remoting framework written from batching/queue, asynchrony and...
2
by: durumdara | last post by:
Hi ! I want to write a program that backup some databases in the night. Pseudo like this: try: if cmd('net stop dbservice'): s=c://backup'+str(time.time())+'.zip' if cmd('zipit...
1
by: rchicho | last post by:
Necesito importar a una tabla MySQL datos de un archivo de texto, donde los campos están seperados por tabuladores, pero el orden y cantidad de los campos en el archivo texto no coincide con el de la...
0
by: moishyyehuda | last post by:
whey when I execute this statment cursor.execute("""mysqlimport merchandise 1.txt""") I get this error ProgrammingError: (1064, "You have an error in your SQL syntax. Check the manual that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.