簡體   English   中英

在Windows 10上的mysql工作台中導入mysql dump

[英]Import mysql dump in mysql workbench on Windows 10

我正在嘗試導入並在本地計算機上打開與mysql的連接。 我做了一個名為frontend.sql的sql dump

我在mySQL工作台查詢中做了以下操作:

CREATE DATABASE frontend;

USE frontend;

這些查詢成功。 然后我做了

SOURCE "C:\\Users\\John\\Downloads\\frontend.sql";

它給出以下錯誤代碼: Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SOURCE C:\\Users\\John\\Downloads\\frontend.sql' at line 1 Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SOURCE C:\\Users\\John\\Downloads\\frontend.sql' at line 1

如何導入數據庫?

您打開可以執行mysql的控制台

然后點擊:

mysql -u username -p frontend < C:\Users\John\Downloads\frontend.sql

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM