User Tools

Site Tools


mysql:import_a_database

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.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki