User Tools

Site Tools


mysql:import_a_database

This is an old revision of the document!


MySQL - Import a database

mysql -u username -p new_database < data-dump.sql

NOTE: You may first need to create the database itself, it the dump file does not include this.

CREATE DATABASE new_database;

The successfully-run command will produce no output, unless an error occurs.

mysql/import_a_database.1487762652.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki