Hello guys, this is a great video. When i used it first time than i understand at once all method.I use this video and i did a litle notice on my blog. You find it on abwolf.com.
Its a lot easier watching you do this, than it is watching me do it. Thankfully, now its not as bad as was when I started a couple hours ago! Thanks!! Off to work!
@ellsworthhouse94705 You see "Fields terminated by", "Fields enclosed by", and "Fields escaped by"? Excel should save csv's with quotes around every text field, so you can have as many commas as you want. Instead it only puts quotes around fields that contain commas. Try exporting as csv and look at the resulting file in notepad.
Where Excel completely screws up is escaping double-quotes ("). It should put slash in front of them"\", but instead it puts another double quote. Use Open Office..
i am trying to create a system that would automatically import excel file to mysql... do u have any how should i do it? i don't want the user to save the excel file to csv, what i want is that the system would choose the file and make it a csv file... can you help me? thanks a lot... anyway this video really gave me a little idea and helped me a lot.. :) thanks more power
Check out the PHP filesystem functions in the php documentation
That will probably give you a way to go through the files in the directory and save them as .csv files automatically.
Then connect to database using mysql_connect()
Then open and parse the .csv files using fopen() and fgetcsv()
Then insert each row of csv data into your table with the query. You'll need to use a while statement INSERT INTO table_name SET column1_name = 'value' ... etc
a little mistake you uploaded the first file instead of the new one in which you added _import to the name, in that file you did ereased the headers, but you choosed the one with the headers still there
Top man! That was a very clear video that solved a problem I had spent hours working on, downloading software that didn't work and banging my head against the wall! Thank you!!
LOAD DATA INFILE '/tmp/php0PRDUI' INTO TABLE `Division1` FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n' On 9.52 I keep getting this error:
MySQL said:
#1045 - Access denied for user 'sheppeys'@'localhost' (using password: YES)
Thanks a lot for your contibution, I have spent hours and hours of frustated work trying to import my Excel table to MySQL, keep the great Job!. I will say "Cheersss..." with a glass of Tequila saying your name, gracias amigo. Greetings from Mexico!,
I seriously love you!!!! I've been trying to do this all day and I was at my wits end...I thinking "what am I doing wrong??" Thank you so much for posting this video even though its from 2008...thank you! thank you! Now maybe I can get somewhere :)
When you saved the csv file you had original excel file open so you renamed it to file_import.csv & then imported the original file with the field headers, hence the need to delete the first row with headers.
Hello guys, this is a great video. When i used it first time than i understand at once all method.I use this video and i did a litle notice on my blog. You find it on abwolf.com.
MrAbwolf 1 day ago
All the fields I get are NULL, why does this happend?
MrEG12341 1 week ago
thanks for this video. Very helpful.
aiyer10 1 week ago
Very good this is helpful to me.
sumguyx2x 1 month ago
very cool, you are the best!!!!
bobowa 1 month ago
Thanks. Very Useful. Good Luck
neweranda 1 month ago
f-ing love you man....
empireones 1 month ago
is it possible to import xls straight to php without converting the file to csv?
spiderpig4444 1 month ago
is it possible that data from mysql imported to excel
huejiitechx 1 month ago
Dear Sir, I am imorting same data from mysql but the date its in the wrong format. for ex 632525515609177000. How can i solve it
saidj005 2 months ago
thanks for this
globalinfocom 2 months ago
THANKS A LOT!!! You just save my life!
toroduque 2 months ago
Its a lot easier watching you do this, than it is watching me do it. Thankfully, now its not as bad as was when I started a couple hours ago! Thanks!! Off to work!
makingamessofthings 3 months ago
Thanks great work and very helpful
johnliverpool1000 3 months ago
Thanks for the video instruction. Well done. Spent several hours trying this and that until I found your video. Straightforward and effective.
william97035 3 months ago
Very helpful. Thank you!
vigante 3 months ago
genial
criiminal9090 4 months ago
thanks for this tutorial! :)
ixtradebiz 4 months ago
I would suggest this site for generations of sql query from a file excel
s7ntech . altervista . org/utility/s7xlstosql
s7ntech 5 months ago
the reason why you had the student, test1, test2.... row, is because you saved the csv file as "Gradebook_import.csv"
The rest.. BRILJANT
mrkoekie 5 months ago
What happens if you have commas in some of your data?
ellsworthhouse94705 5 months ago
@ellsworthhouse94705 You see "Fields terminated by", "Fields enclosed by", and "Fields escaped by"? Excel should save csv's with quotes around every text field, so you can have as many commas as you want. Instead it only puts quotes around fields that contain commas. Try exporting as csv and look at the resulting file in notepad.
Where Excel completely screws up is escaping double-quotes ("). It should put slash in front of them"\", but instead it puts another double quote. Use Open Office..
kierkegaardrulez 4 months ago
Great tutorial, the first one i've ever used without a hitch!
webcd80 5 months ago
Comment removed
webcd80 5 months ago
thanks will try it out later! :)
bloodytoy3 5 months ago
very helpful video....thanks
Defmonkful 6 months ago
how much does the database weigh?
ghodium 6 months ago
thanks man! When I used CSV using LOAD DATA it worked like a charm
Ruunerwold 6 months ago
Thank you, i was in trouble and you solve my problem
tomcatbilli 7 months ago
thank you thank you thank you !!! you rules!!
8:49.... Psychological study of... hahahaha!!!
TheAshodpuck 7 months ago
you don't need to check the field when you delete unless you are using the controls at the bottom of the table
TOMTOM171717 7 months ago
Thanks man this tutorial was great. That last aprt about the CVS load was the trick. Thanks again.
melowise 7 months ago
awesome video bro, thanks !
vba4accountants 8 months ago
Superb, thank you very much....
venkykeerthi 8 months ago
great great great! you r absolutely awesome! this saves me tones of work! Thanks very much!
drascatube 8 months ago
whoah, i thought you're going to create an sql statement but i was wrong. sleek move! great!
foobarph 8 months ago
This has been flagged as spam show
Hello this is zaib,
The video "Import Excel to MySQL Database " is very nice and easy. Its excellent. Thanks alot.
zaibkhanzk 8 months ago
Hello this is zaib,
The video "Import Excel to MySQL Database " is very nice and easy. Its excellent. Thanks alot.
zaibkhanzk 8 months ago
THANK YOU SOOOOO MUCH!!!
I was stressing out why my data wouldn't import, I wasn't adding the comma so my fields wouldn't separate lol.
Thanks for the help man seriously.
blowtar 8 months ago
Thanks a stack for this illustration!!!!! This has been very helpful.
bliksum58 9 months ago
thank you thank you so much..its really helpful!!
luxmeh 9 months ago
thank you very much!!!!!!
ThePantrey 9 months ago
Thank you SOOOOO much. This is so much faster and cheaper than purchasing conversion software. Again, thank you.
gourmet10 9 months ago
Awesome
hisdness1 9 months ago
Awesome tutorial! Interesting! thank you,
bungurdy 10 months ago
Really great ...It was very helpfull to me ....Thanks A lot
keertishrimali 10 months ago
Thank you!
N00SA 10 months ago
thanks a lot. it works fine ....
MyThunder77 10 months ago
thanks a lot. it works fine ....
MyThunder77 10 months ago
my excel csv file is adding a lot of extra commas at the end causing extra empty fields to be created in my db. How can I fix this? Thanks.
wrdeboise 10 months ago
gradebook_import.csv should be your target ^^ nice tutorial, and thx a lot.
LeoNazDo 11 months ago
i am trying to create a system that would automatically import excel file to mysql... do u have any how should i do it? i don't want the user to save the excel file to csv, what i want is that the system would choose the file and make it a csv file... can you help me? thanks a lot... anyway this video really gave me a little idea and helped me a lot.. :) thanks more power
chungwufeiQ 1 year ago
@chungwufeiQ
Check out the PHP filesystem functions in the php documentation
That will probably give you a way to go through the files in the directory and save them as .csv files automatically.
Then connect to database using mysql_connect()
Then open and parse the .csv files using fopen() and fgetcsv()
Then insert each row of csv data into your table with the query. You'll need to use a while statement INSERT INTO table_name SET column1_name = 'value' ... etc
imkb010 11 months ago
a little mistake you uploaded the first file instead of the new one in which you added _import to the name, in that file you did ereased the headers, but you choosed the one with the headers still there
luespi2006 1 year ago
thanks a lot indeed
you rock
great awesome
this is totally outstanding
man oh god you do rock big time!!!!!!!!!!!!!!!!!!!!!!!!
luespi2006 1 year ago
Comment removed
amirkoklan 1 year ago
greaaaaaaaaaaaaaaaaaaaaaaaattt
amirkoklan 1 year ago
thanks man, it was great :)
fdmomtaz 1 year ago
i can't access to cPanel how am I going to do??
mijz08 1 year ago
Top man! That was a very clear video that solved a problem I had spent hours working on, downloading software that didn't work and banging my head against the wall! Thank you!!
blackdogmanguitar 1 year ago
thanks man..ur the best..great tutorial..u save my ass tonight!..wew!..
enjoyjocel 1 year ago
Great tutorial! Thank you for posting it. What screen recording software did you use for this tutorial?
jasonwalker33 1 year ago
UUUFFFF buen aporte!
ozkr2805 1 year ago
You Rock! It drove me nuts getting this working. I also realized that I had to turn off the auto_increment on my first primary field.
ebayguru1 1 year ago
Thanks man it worked for me... :)
But in the Import page you have to select radio button "CSV" and not "CSV with Load Data"....
sudarsan7532 1 year ago
Wow thank you thank you! You're voice is so clear ^_^
willzurmacht 1 year ago
Gracias!!
cinthiamacias 1 year ago
thank u.......but how to Import .sql file Into Wordpress ?
amitktube 1 year ago
Error
SQL query:
LOAD DATA INFILE '/tmp/php0PRDUI' INTO TABLE `Division1` FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n' On 9.52 I keep getting this error:
MySQL said:
#1045 - Access denied for user 'sheppeys'@'localhost' (using password: YES)
Could anyone help me out with this?
Tommyboibruv 1 year ago
At 9.52 I cannot go any further because of error 1045. Could someone help please?
Tommyboibruv 1 year ago
Thank you very much!
JogosIOL 1 year ago
thanks very much, this helped a bunch :D
fudge867 1 year ago
Thanks a lot for your contibution, I have spent hours and hours of frustated work trying to import my Excel table to MySQL, keep the great Job!. I will say "Cheersss..." with a glass of Tequila saying your name, gracias amigo. Greetings from Mexico!,
anayfp 1 year ago
thanks man, it really great tutorial
joker4001 1 year ago
I seriously love you!!!! I've been trying to do this all day and I was at my wits end...I thinking "what am I doing wrong??" Thank you so much for posting this video even though its from 2008...thank you! thank you! Now maybe I can get somewhere :)
jesuslovesme09 1 year ago
This was very helpful. Thank You. :)
bluefish701 1 year ago
Excellent and easy ! Thank you!
mchcreative 1 year ago
Great! Thanks for taking time provide this info.
armusiclive 1 year ago
When you saved the csv file you had original excel file open so you renamed it to file_import.csv & then imported the original file with the field headers, hence the need to delete the first row with headers.
FlatspinZA 1 year ago
great tutorial thanks
dlaurent86 1 year ago
Nice video but what if your data has commas in it?
Kenbreg 1 year ago
Thank you!
sshelato 1 year ago
use dbTube simple to use and no coding, configuration,...
digitalsimulator 1 year ago
what is the url of that page ?
camusrage01 1 year ago
Thank you very much! This saved me a huge headache ... Much appreciated. Cheers
SolarWaterTV 2 years ago
Great tutorial. Thank you! You just cured my headache.
yourherojake 2 years ago
Use CSV with LOAD data, it took me a while to figure out why CSV was not working.
Thanks a lot man.
anandmohan88 2 years ago
nice thanks alot! :)
Realcfx 2 years ago
thank a lot
zsebyagain 2 years ago
THANKS!
spaedy4ever 2 years ago
THANK YOU!!!! VERY HELPFULL!!!
dalv11 2 years ago
If you want to import with CSV-Option, you have to list the fields you want to import, seperated with comma (",")
themoosemind 2 years ago
Very helpful tutorial. Thanks a lot!
uniquestory 2 years ago
I'm a hero at work now! Thanks!
JeTSpice 3 years ago
THANK YOU SO MUCH
spaedy4ever 3 years ago
This helped me loads, Thanks!
draponix 3 years ago
With Mac the end of line is \r not \n like on Windows
ferrersr 3 years ago
thanks, great tutorial.
philliph22 3 years ago
Why did I only get 1 row affected?
RecoDesign 3 years ago
I got all the rows affected when I did it with CSV. Only 1 row affected with CSV using LOAD DATA.
RecoDesign 3 years ago