Home > Database > Mysql Tutorial > How to import sql file into mysql

How to import sql file into mysql

醉折花枝作酒筹
Release: 2021-06-19 09:11:44
forward
4892 people have browsed it

This article will give you a detailed introduction to the method of importing sql files into mysql. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to import sql file into mysql

The first step: Find mysql in the start interface

How to import sql file into mysql

The second step: Double-click to open the mysql software. , and enter the password.

How to import sql file into mysql

Step 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

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

How to import sql file into mysql

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

How to import sql file into mysql

Step 6: Start importing the sql file and enter the "source sql file path" (note that if your file path is copied, you must replace all "\" into "/")

Step 7: Enter "show tables" and you will see the tables you imported.

How to import sql file into mysql

Related recommendations: "mysql tutorial"

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

Related labels:
source:csdn.net
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template