Category Archives Data and Databases

This is the last part in a series of tutorials on how to create a sql file from a csv file. First, we determined what was needed for the process, then we created the MySQL database and tables, and finally we imported the csv file into the MySQL database. In this last step, we are going to generate a sql…

We are going step by step through the process of converting a csv file to a sql file. In the first part, we discussed what tools we need to accomplish this task, as well as where to find a sample csv file to play with. We then covered creating the sql database in the second part. In this third section,…

Continuing on from my previous post, we are now going to start the conversion process. The first step is to create the database and the table that we need. You can do this using PHPMyAdmin, but I generally prefer to use HeidiSQL. The process is basically the same in each case, but I find HeidiSQL to have a better interface.…

I have been playing more with databases and less with PHP these last few days out of necessity, and I've had to convert a bunch of files over from .csv to .sql (MySQL).  Now I generally don't like to use a method if I don't understand it, and I try to find a way that works for me, use it,…

Carrying on with the theme of data files and databases, I am going to talk a bit about .csv files. "csv" stands for Comma Separated Variables, and is a popular format that is supported by many spreadsheet and database applications. I work a lot with csv files, opening them in Excel to manipulate them, or saving my Excel or Access…

Close