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 > Cant import data from SQL to MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 18:05
zdehman zdehman is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
Cant import data from SQL to MySQL

We're trying to import a 25MB ++ data in text format to MySQL from MSSQL. We are using the mysqlimport command to import the data to the database in which these are the conditions we have set...fields are delimited by comma, enclosed by quotation marks, and terminated by '\r\n'. Everytime we do this we get a "Cant stat file (Errcode 13)". We also tried using PhpMyAdmin to import the data but it doesnt seem to do anything. Can MySQL handle very large files? Can anyone help me on this?
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 20:43
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: Cant import data from SQL to MySQL

Quote:
Originally posted by zdehman
We're trying to import a 25MB ++ data in text format to MySQL from MSSQL. We are using the mysqlimport command to import the data to the database in which these are the conditions we have set...fields are delimited by comma, enclosed by quotation marks, and terminated by '\r\n'. Everytime we do this we get a "Cant stat file (Errcode 13)". We also tried using PhpMyAdmin to import the data but it doesnt seem to do anything. Can MySQL handle very large files? Can anyone help me on this?
Have you tried importing a file with only a few rows to test?
Have you tried copying your text file to the directory where the mysql executable resides?
Reply With Quote
  #3 (permalink)  
Old 10-10-03, 11:45
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
It seem that MySQl can't acces to the file du to filesystem privilege.
You have to make sure that the file can be read by the user who run MySQl


You can also take a look at
http://www.lasso-developpeur.net/us/...tab=db&lang=us
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #4 (permalink)  
Old 10-10-03, 17:43
zdehman zdehman is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
Takes too much time to generate....

We've tried everything you've suggested but still its too slow to generate a result from the query where making. We've tried generating the result of the query from OpenOffice and from PhpMyAdmin but stlill no luck.
If i limit the result of the query to a small number it displays the result of the query much faster so im assuming it is generating the report even though it seems as if it has completely hang up. Can anyone help me on this?
Reply With Quote
  #5 (permalink)  
Old 10-22-03, 07:20
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: Takes too much time to generate....

Quote:
Originally posted by zdehman
We've tried everything you've suggested but still its too slow to generate a result from the query where making. We've tried generating the result of the query from OpenOffice and from PhpMyAdmin but stlill no luck.
If i limit the result of the query to a small number it displays the result of the query much faster so im assuming it is generating the report even though it seems as if it has completely hang up. Can anyone help me on this?
Could you post the strcture of the table and sample data from the sql file?
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