Home  >  Article  >  Database  >  How to import sql file into mysql database

How to import sql file into mysql database

coldplay.xixi
coldplay.xixiOriginal
2020-09-29 14:33:5516366browse

How to import sql files into the mysql database: first open mysql and enter the password; then create the database and enter "use database name"; finally start importing the sql file and enter the "source sql file path".

How to import sql file into mysql database

##More related free learning recommendations: mysql tutorial(Video)

How to import sql files into mysql database:

1. Find mysql in the start interface.

How to import sql file into mysql database

#2. Double-click to open the mysql software. , and enter the password.

How to import sql file into mysql database

#3. If there is a statement to create a database in the content of the sql file or you want to store the table in your existing database, there is no need to create a database here.

How to import sql file into mysql database

4. Enter "show databases;" to see the database you created.

How to import sql file into mysql database

5. Enter "use database name" to start using this database.

How to import sql file into mysql database

6. Start importing the sql file and enter the "source sql file path" (note that if your file path is copied, replace all "//m.sbmmt.com/m/faq/\" with " /”)

How to import sql file into mysql database

#7. Enter “show tables” and you will see the tables you imported.

How to import sql file into mysql database

The above is the detailed content of How to import sql file into mysql database. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn