-
Install database server:
$ sudo yum install -y mariadb-server
-
Check MariaDB version:
$ mysql -V
-
Start database server:
$ sudo service mariadb start
-
Improve security of database and setting important parameters of DB:
$ mysql_secure_installation
-
Download world database from
https://downloads.mysql.com/docs/world-db.zip
. -
Extract and import file world.sql to database system:
$ mysql -u root -p < world.sql
-
Connect to database:
$ mysql -u root -p
-
List of databases:
SHOW DATABASES;
-
Select world database:
USE world;
-
Overview of tables:
SHOW TABLES;
-
Structure of tables:
DESCRIBE city; DESCRIBE country; DESCRIBE countrylanguage;
-
Notifications
You must be signed in to change notification settings - Fork 0
Rostislav87/SQL_World_database
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published