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 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
What is Zdog?MiscellaneousHow to position an image on top of another image using CSS?CSSSteps to Secure a VPNMiscellaneous2 Ways We Can Write Multiple Line Commands in PHPPHPObject destructuring in JavaScript: Unpacking fields from objects passed as function parameterJavaScriptHow to hide a DIV on clicks outside of it using jQuery?jQuery