Mysql WorkBench Import and Export

3

I have a Bank in MySQL Workbench with the data filled in and I want to pass this all filled-in data to another MySQL Workbench, but on another computer.

Is it possible to do this, or will I have to populate the data all over again?

    
asked by anonymous 23.04.2014 / 19:19

2 answers

6

You can export your bank in the Workbench in Management - > Data Export . Select the database, choose the directory and filename and click% with%. An sql file will be generated.

On another computer, in the Workbench, click Start Export - > Management , search for the previously generated sql file and click Data Import/Restore .

This is version 6.1 of the MySQL Workbench.

    
23.04.2014 / 19:24
0
<?php
$username = "root";
$password = "root";
$hostname = "localhost";
$dbname   = "test";

header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($dbname . "_" .date("Y-m-d_H-i-s").".sql"));

$command = "C:\AppServ\MySQL\bin\mysqldump --add-drop-table --host=$hostname     --user=$username --password=$password ".$dbname;

system($command);
?>
    
18.06.2014 / 14:15