YogeshChauhan . com

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.

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

Recently Posted

May 5 Use inline if to make a shorter conditional syntax in React May 4 What is Conditional Rendering in React? May 3 How does @extend rule work in SCSS (Sass)? May 2 How different is Handling Events in React vs HTML DOM? May 2 How to create bouncing balls using HTML canvas and JavaScript? Apr 30 HTML canvas methods

You might also like these

What is Host Hardening and What are some Important Hardening Steps?MiscSome Useful Operators in The SQL WHERE ClauseSQL/MySQLHow to position an image on top of another image using CSS?CSSadd_filter function in WordPressWordPressWhy it’s not a good idea to create Number objects in JavaScript?JavaScriptHow to create bouncing balls using HTML canvas and JavaScript?HTML