I cannot seem to push information up into my database via Terminal. MySQL logic is proper, and it acts like the dump was successful. However, the data never gets pushed up into the DB. I'm even logged in as root, which has all permissions on the server and inside of MySQL.
(Edit) My command is:
mysqldump -u root -p DBNAME db_table < /home/MJV/.../.../db_table_backup.sql
It gives:
-- Dump completed on 2016-07-15 15:22:19
Any advice on how to proceed? Thank you!
Edit: Giacomo1968 told me to run the following command:
mysql -uroot -p[password] dbname db_table </home/MJV/.../.../db_table_backup.sql
Any it threw the help information, such as:
mysql Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3 Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Any more tricks I could be overlooking?
db_table_backup.sql
, so I find it hard to advice. One thing which strikes me is the parametersdbname
anddb_table
. I didn't work so often with mysql, but why do you want to specify the name of the database and the name of a certain table, when you want to recreate everything from your backup? The SQL code should contain the necessaryCREATE
commands to perform this task.