List/Database of U.S cities and states
database
Solution
Check out the MySQL world sample database. This db is used by mysql documentation as a sample db to test query on.
It already have a 'cities' table you are looking for.
Problem
I want a .csv list, mysql database, or any other list of all U.S states and cities, including which cities are in which state. From this list I will generate a mysql database with the following fields: ``` states: - id (int, auto_increment, primary) - name (varchar 255) cities: - id (int, auto_increment, primary) - stateId (id of the state from states table to which this city belongs) - name (varchar 255) ``` Thanks in advance.