MySQL installation, creation and maintenance of database experiments

1. Install and configure MySQL version 5.7 on the Windows platform.
insert image description here
2. In the service dialog box, manually start or close the MySQL service.
insert image description here
Open after manual stop:
insert image description here
3. Use the Net command to start or close the MySQL service.
insert image description here
insert image description here
Use the Net command to close and start:
insert image description here
4. Use MySQL Workbench/Navicat and other client tools and command lines to log in to MySQL respectively.
5. Change the storage location of the database to D:\MYSQL\DATA in the my.ini file, restart the service, and then create the database.
① Use Navicat:
insert image description here
insert image description here
② Use the command line:
insert image description here
6. Create a database.
insert image description here
insert image description here
② Use the SQL statement to create the database MyTestDB.
insert image description here
7. View the database properties.
① Check the status of the created JXGL database and MyTestDB database in client tools such as MySQL Workbench/Navicat, and check the folder where the database is located.
insert image description here
insert image description here
insert image description here
insert image description here
② Use the SHOW DATABASES command to display all current databases.
insert image description here
8. Delete the database.
① Use client graphical tools such as MySQL Workbench/Navicat to delete the JXGL database.
insert image description here
insert image description here
insert image description here
② Use the SQL statement to delete the MyTestDB database.
③ Use the SHOW DATABASES command to display all current databases.
insert image description here

Guess you like

Origin blog.csdn.net/m0_55726741/article/details/129247749