New to MySQL user so pardon the relative beginner question. I've been searching for an answer to this for the past few hours but just can't figure it out!
I'm trying to import a backup of a wordpress database to a new GCP instance with mySQL. I've copied the .sql file to the server & I've typed the import command as follows:
mysql - u root -p databasename < databasefile.sql The problem however is that SQL returns no message at all, leaving me to believe the command failed. When I load up Mysql through SSH and try to run SELECT * FROM databasename; I'm greeted with.... Empty set (0.00 sec)
My questions are...
- Does the "Empty set" return mean that the database is not importing correctly?
- Should MySQL return something if the database import was successful?
- ... Why is SQL not importing my database?
Thanks in advance.
SELECTagainst a database isn't going to be productive. You need to run it against a table. Tryuse databasenamethenSELECT * from wp_users.