Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Automate data import via C# (no replies)

$
0
0
I am new to MySQL and have the task of automating a data import. The entire database is scripted into a sql file and delivered over FTP. The script has table create statements followed by data insert statements (MySQL data dump).

Currently, I run the MySQL command line import statement. Is there a way I can automate this through .NET / C# code ? I tried running the query as a MySqlCommand but the length of the file is too big and I run into out of memory exception issues.

Tried running the mysql.exe as a "Process" but was not able to pass in arguments to login & execute the import.

Any help or pointers would be greatly appreciated.

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>