Welcome, Guest
Username: Password: Remember me
Components and Libraries for Database Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

MySQL+phpMyAdmin on UWS: database management and sql database import 4 hours ago #19753

  • Ak.Saharov
  • Ak.Saharov's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 63
  • Thank you received: 4
I have found example databases on MySQL official web-page
dev.mysql.com/doc/index-other.html
See Example Databases

I have downloaded database 'world'
and succesfully imported it to MySQL hosted on Ultra Web Server.


I have used phpMyAdmin+MySQL on Ultra Web Server to learn more about:

1. structure of database to be used in apps (client side)
  -  Number of tables
  -  Field names
  -  Field types 
  -  Data content
  -  Primary keys (id)

2. relationship of tables (3 tables in db 'world')

3. database administration on the server side (phpMyAdmin+MySQL)

- add, edit data in the tables
- create, rename, delete tables 
- change tables relations
- import database from sql-file
- export database to sql-file

Screenshots attached.


 
 
 
 

 

 
 
Attachments:

Please Log in or Create an account to join the conversation.

MySQL+phpMyAdmin on UWS: database management and sql database import 3 hours 31 minutes ago #19754

  • Ak.Saharov
  • Ak.Saharov's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 63
  • Thank you received: 4
This is the roadmap for everybody who wants to try import sql-file into database

1. Download and unzip example database 'world' 
From MySQL official web-page
dev.mysql.com/doc/index-other.html
See Example databases

2. Open world.sql file as text file (I use notepad) 

3. Check the main settings for database in sql-file (world.sql).

                     Current Database: `world`

                     FOREIGN_KEY_CHECKS=0  (disabled)

                     DEFAULT CHARACTER SET utf8mb4

                     Server version 8.0.19 (MySQL 8.4 for Ultra Web Server)


4. Install MySQL 8.4 using menu UWS-Elements Manager

5. Select MySQL 8.4 using menu UWS-Select MySQL\MariaDB version

6. Reload Ultra Web Server - close it and launch again.

7. Enable Apache - press button "Start Apache"

If neccessary, check firewall\antivirus settings to enable start of Server

8. After Apache welcome-page started in browser, enable MySQL - press button "Start MySQL"

If neccessary, check firewall\antivirus settings to enable start of Server

9. Press "phpMyAdmin" button when it started active

10. phpMyAdmin web-page will be opened in default browser

11. Create new database named 'world'

Database name is inside sql-file (world)


12. After new database created, pick it up on the left panel of phpMyAdmin and press "Import" button.

Choose sql-file to load : world.sql


13. Make settings for import according to settings from sql-file: 

FOREIGN_KEY_CHECKS=0  (disabled) - according to settings in sql-file

14. Press "Import" button and wait for a while (!).

In case of success there will be message.

15. Pick up any table from new created database (database tree on the left panel).

For SQL-requests from the client application could be used:
    Field names
    Field types 
    Data content
    Primary keys (id)
    
SQL-Template is shown above the table (SELECT * FROM *)


More information on screenshots attached.

 
 

 
 
 


 
Attachments:

Please Log in or Create an account to join the conversation.

  • Page:
  • 1