CSV to MySQL with PowerShell

preview_player
Показать описание
Load a CSV file into PowerShell and create the table if you want!!

Code repository

My photo site

How to support my channel
1 - Like videos
2 - Subscribe to my channel
Рекомендации по теме
Комментарии
Автор

got a question (edit: no need to answer!) : why this MySQL module and not the MySQL NET Connector everyone else seem to use? | i got stuck because the system.time(dd/mm/yyyy) format is different than the databank.time format (yyyy/mm/dd) and there is no parameter to pass it | in the time the sysadmin made the change, i implemented the NET connector | thank you for the CSV part, but sadly its no export to csv^^

realmcafee
Автор

Hi Tom, would you mind explaining how the authentication works in the script please?
I'm trying to configure my credentials in the script, but that fails.
I can however authenticate to the DB when using the PS Shell, so I'm a little lost.
Thanks for the video,

LindsayForbes
Автор

hi how do i do this using LOAD DATA LOCAL INFILE in powershell and mysql

juanpabloalvarezsanchez
Автор

Hi Tom
Thanks so much for explaining really good your script.
I was wondering if you could help me out with a quickly thecnical concept, since I dont find the solution.
I have a .ps1 which import (bulk load) huge csv (more than 1 gb) into SQL server (MSQLSMS). But the csv are enclosed in quotes for the string fields. So, the quotes is being imported to SQL as well. When I imported the csv into a variable, in your example would be $csvdata, I did a foreach and try to replace ' " ', ' '. But it is not working.
Could you help me out? I also saw I can contribute with paypal. Thats great since I am sure you help a lot of people with your codes.
Thanks Tom

franesp