I am new to MariaDB and need to do below activity.
We are using MariaDB as datatbase and we need to read a txt file from ftp location. Then load into a table. This has to be scheduled to read the file on a regular interval.
After searching I got LOAD DATA INFILE to be used, but it has the limitation that, it can't be used in Events.
Any suggestions/samples on this would be great help.
Thanks
Nitin
You import it and read it using the local path, MariaDB does basic file support, in no case it supports FTP transactions
LOAD DATA can only read a "file". But maybe the OS can play games...
What Operating System? If the OS can hide the fact that FTP is under the covers, then LOAD DATA will be none the wiser.
Related
we tried loading a file in GT.M. we started off by invoking mupip and then load command. it read the file but shows an error. do we need to define a schema? if yes how?
It will be easier to assist you if you post the error you see, and also what steps you have taken to troubleshoot it that may be suggested by the GT.M Messages and Recovery Procedures manual (go to http://fis-gtm.com and click on the User Documentation tab).
It might also be clear if you clarify what you mean by "load a file". You could be talking about running a program (routine) that is stored as a host operating system file such as "myprogram.m", or you could be talking about loading a file full of data stored in, perhaps a comma seperated value format, in a host operating system file such as "mydata.csv".
Also (admittedly unlikely) you could be talking about loading a VistA FileMan File, that is stored as a host operating system file formatted as a KIDS build such as in "package.kid" where the FileMan data dictionary (a form a schema) is stored in that KIDS format.
I read INI file strings through GetPrivateProfileString API. However, the INIs in local windows directory could be read like that.
How can I read and edit a INI file in a Remote machine.
You should not expect to be able to modify INI files stored on remote machines. Whatever your problem is, this is not the solution.
I guess you're asking how to read a remote file (which is what this would boil down to). The easiest option if it's available is probably to just read the file using a remote UNC file path, e.g. \\SomeMachine\SomeShare\TheFile.ini. If you can't do that, you need to figure out a way to transfer the file to the local machine, either out of band or on demand using named pipes, TCP sockets, or something similar.
Why are you using INI files anyway? They were essentially deprecated after the 16-bit Windows era. I'd highly recommend a different approach (e.g. the registry, an XML config file, ...).
I only found out recently that you can't access INI files on UNC paths.
My solution was to map a drive letter to that location and it worked.
So instead of
\myserver\myinipath\myinifile.ini
I mapped X to that location...........
net use x: \myserver\myinipath
in case you need to login to that UNC path/server then
net use x: \myserver\myinipath /user:loginname password
I now use x:\myinifile.ini
I want to open/create a file and write some data in it in hadoop environment. The distributed file system I am using is hdfs.
I want to do it in pseudo distributed mode. Is there any way I can do this. Please give the code.
I think this post fits to your problem :-)
Writing data to hadoop
I got a Nokia backup file (.cdb) - it's kindof database file. The first four bytes of the file are "DBFL".
Is it a well-known database file?
It's CardScan file. I suggest best way would be to download CardScan softwarte and try export from there to some more reliable format.
I need raw read data from and write data into drive..not via existed filesystem like fat32 or something....i just wanna raw write read......
I was told in Windows i can use CreateFile WriteFile and ReadFile APIs to access data in drive directly... but I dont know in Linux whether there r similar functions....
dont tell me to use hardware driver programming, coz i am just a newbie in linux programming..
thanx a lot....
Files /dev/hd* and /dev/sd*, depending on your setup, contain raw disk data. You need root account usually.
Use mount command to find out which disks/partitions are mapped to which files.