473,480 Members | 2,840 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Upload problem with phpmyadmin

Hi,

My mysql base was migrated from a version 3 under Windows to a version 4
under Linux and the base was placed on a new server different from the
web server (this one with phpmyadmin).

When I trie to upload a csv file with phpmyadmin, I obtain the following
error :

---------------
SQL request :

LOAD DATA INFILE 'C:\\WINNT\\TEMP\\php8D.tmp' REPLACE INTO TABLE
`bb_seqesout`
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'

MySQL responds :

Can't get stat of 'C:\WINNT\TEMP\php8D.tmp' (Errcode: 2)
---------------

Is there a problem of path ? (The path must not be /tmp instead of
C:\WINNT\TEMP\ ?)

I tried to modifie in the php.ini the variable UploadDir to "/tmp/", but
it doesn't run too...

Has somebody encoutered the case of parameter setting of phpmyadmin
under windows, on a different server from the mysql base which is under
Linux ?

Sorry for my English.
Thanks for your help.

Hervé C.
Aug 12 '05 #1
1 1616

Claire DURAND wrote:
Hi,

My mysql base was migrated from a version 3 under Windows to a version 4
under Linux and the base was placed on a new server different from the
web server (this one with phpmyadmin).

When I trie to upload a csv file with phpmyadmin, I obtain the following
error :

---------------
SQL request :

LOAD DATA INFILE 'C:\\WINNT\\TEMP\\php8D.tmp' REPLACE INTO TABLE
`bb_seqesout`
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'

MySQL responds :

Can't get stat of 'C:\WINNT\TEMP\php8D.tmp' (Errcode: 2)
---------------

Is there a problem of path ? (The path must not be /tmp instead of
C:\WINNT\TEMP\ ?)

I tried to modifie in the php.ini the variable UploadDir to "/tmp/", but
it doesn't run too...

Has somebody encoutered the case of parameter setting of phpmyadmin
under windows, on a different server from the mysql base which is under
Linux ?

Sorry for my English.
Thanks for your help.

Hervé C.


Try this sql query:

LOAD DATA INFILE 'c:/WINNT/TEMP/php8D.tmp' REPLACE INTO TABLE
`bb_seqesout`
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'

Aug 12 '05 #2

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

Similar topics

5
5604
by: Craig Keightley | last post by:
I have had a quick look on the net for the above but have found a load of impressive scripts, all of whic are too over complicated for what i need to do: I have a csv file of number plateswith...
2
1898
by: erik | last post by:
Hi My ISP gives me phpMyAdmin to get in contact with my MySQL-db but sadly enough the "IMPORT TEXTFILE TO TABLE" do not work (gives errormessage "#1045 access denied" and I do not know if it will...
3
2156
by: cofused | last post by:
Hi, I have set up the Xitami server (2.5c2) and PHP (5.0.5) on my Win98 system without any problem. I am trying to add PhpMyAdmin. When I try to load http://home/phpmyadmin which loads...
16
4943
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've...
25
5285
by: Wim Cossement | last post by:
Hello, I was wondering if there are a few good pages and/or examples on how to process form data correctly for putting it in a MySQL DB. Since I'm not used to using PHP a lot, I already found...
7
2525
tolkienarda
by: tolkienarda | last post by:
hi all I am using a php script to try to upload images to my database. i know i am connecting to my database because the image title is being wirtten to the database. but the image isn't example:...
8
8859
by: Jonathan Sachs | last post by:
I just tried to install phpMyAdmin on my system, and I can't get it to work. When I tried to run the setup procedure (setup.php) I got the following message: Fatal error: session_start() :...
0
2250
by: ahmurad | last post by:
Dear Brothers, I want to upload XLS/CSV huge data (90,000 rows in a XLS/CSV file) into MYSQL database. I want to use only Import option of phpmyadmin to upload XLS/CSV files. How can i to...
2
1895
by: seanh | last post by:
Hi all, I need some advice regarding phpmyadmin, I installed phpmyadmin directory in the htdocs but when I go to my http://mysite.com/phpmyadmin I get a 500 internal error. I checked the files...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.