Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL workbench : How to export mysql database to .sql file?

I need to export my database in mysql workbench to a file .sql.

What to do?

like image 912
rpires_098 Avatar asked Mar 13 '14 14:03

rpires_098


People also ask

What is export in MySQL Workbench?

Configuration options include exporting to a project folder or self-contained SQL file, optionally dump stored routines and events, or skip table data. Note. Alternatively, use Export a Result Set to export a specific result set in the SQL editor to another format such as CSV, JSON, HTML, and XML.


2 Answers

In MySql Workbench version 8.0 you can just follow the next steps

  1. Go to Server tab
  2. Go to Database Export

This opens up something like this

MySQL Workbench

  1. Select the schema to export in the Tables to export
  2. Click on Export to Self-Contained file
  3. Check if Advanced Options... are exactly as you want the export
  4. Click the button Start Export
like image 145
Tiago Martins Peres Avatar answered Sep 25 '22 00:09

Tiago Martins Peres


try this and select export to self constrained file .sql along with the path.

enter image description here

like image 33
Divya Avatar answered Sep 23 '22 00:09

Divya