Yogesh Chauhan's Blog

How to import MySQL small sample database into phpMySQL?

in SQL/MySQL on August 13, 2019

In this small blog post I am going to show you how to download the MySQL database for the upcoming articles on this blog. You can use this database for your small projects or just for learning purpose as well. 

This database has 3 tabes as follows. 

  • country: Information about countries of the world.
  • city: Information about some of the cities in those countries.
  • countrylanguage: Languages spoken in each country.

Click to Download the database file.

After downloading the database file, follow the instructions below to install it. 

  1. Extract the .gz file in any desired location and you'll see world.sql file.
  2. Log into your phpmyadmin account. The id is root and leave the password field empty.
  3. Go to your server's homepage and click on the "import" option from the menu bar.
  4. Choose the world.sql file to upload and click on the "Go" button leaving all the other options as they are. 
  5. That's it. In less than a minute you'll see the table and columns in the left column bar. Go ahead and play with the database. 

If you're using MySQL Shell, follow this link to know how to install the database.

Note: The sample data used in the world database is Copyright Statistics Finland,  http://www.stat.fi/worldinfigures.


Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to uninstall Cocoapods from the Mac OS?

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
Colleague UI Basics: Accessing the user interfaceColleagueCREATE DATABASE in PostgreSQLPostgresHow to use Context in React?ReactHow to create and store JSON objects in localStorage using JavaScript?JavaScriptIntroduction to Angular modules Part 1: NgModule metadataAngularA Quick Comparison of JOIN and Subquery in SQLSQL/MySQL