YogeshChauhan.com

How to import MySQL small sample database into phpMySQL?

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.

dreamhost

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 uninstall Cocoapods from the Mac OS? #4 How to Use SQL MAX() Function with Dates? #5 How to add Read More Read Less Button using JavaScript? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

Apr 7 Solution for “Yarn build: Failed because of a stylelint error” Apr 7 Make sure your links have descriptive text Apr 7 How to add Laravel to WordPress using Sage theme (and install Tailwind CSS)? Apr 2 How to create a sidebar using pure CSS? Apr 1 How to switch dark and light themes using pure CSS? Apr 1 How to calculate elapsed time in JavaScript?

You might also like these

How to add a Line Chart in Angular App?AngularKilling A Project Part 1: What criteria should be used to cancel/kill a project?MiscSolution to Precision Problem in JavaScript NumbersJavaScriptHow To Create a Fullscreen Background Video using CSS and JavaScript?CSSSolution to “TypeError: ‘x’ is not iterable” in Angular 9AngularWhat is PostgreSQL? How similar or different it is from SQL?Postgres