-
Notifications
You must be signed in to change notification settings - Fork 0
Databases
Gabriel C edited this page Mar 6, 2019
·
1 revision
- Dump the database (it will require your user and password):
mysqldump -u user -p db > dump.sql
Note: change user and db with the appropriate names.
- Enter into MySQL on the server, in the same directory where you copied
dump.sql. The username is scimatch and the password, password:
mysql -u scimatch -p
- The database is already created. Select it and fill it with the data from
dump.sql:
use scimatch;
source dump.sql;After
use scimatchandsource dump.sql,show tablescan be used so we can check that the database is empty (at first) and then correctly copied.