473,548 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ 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\\TEM P\\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 1620

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\\TEM P\\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
5611
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 fixed column headings that i want to be able to upload via a web interface. Once loaded, i want it to insert the values into a database. CSV data:
2
1899
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 be fixed, everything else seems to work allright) so I'm looking for an other (easy) way to upload 3000 + more records. --
3
2161
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 index.php, I get the following (lengthy) warning...
16
4958
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 set the POST limit in php.ini to 8 megs. What reasons, other than the POST limit, would a large upload fail?
25
5308
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 out that addslashes() can be used escape some characters, but I'm having some more problems with for instance ä, å and µ (since the text is...
7
2534
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: if i upload the coke emblem from my desktop and type in 'coke'; when i look into the phpmyadmin i see that the text coke was written to the...
8
8867
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() : Failed to initialize storage module: user (path: C:\...\Temp\php\session) in D\...\phpMyAdmin\libraries\session.inc.php on line 86 I set up the...
0
2253
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 do/proceed such task using this graphical interface (without php script). I am awaiting for your kind replyto do this urgent task. Thanks!!
2
1902
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 from phpMyAdmin-3.1.3.2-english that I unziped on my desktop and compared each one to the ftp phpmyadmin directory files on the server so all files are...
0
7512
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7438
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7803
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3495
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1926
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 we have to send another system
0
751
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.