I read many tutorials online on how to import sql scripts using ssh, and that is mysql –u [username] –p [database] < [file_name].sql but only works for single database. I created an sql file of my localhost (all databases), I did this using PhpMyAdmin and tried to use the code of importing but nothing happens.
Is there a separate way on how to do this?
As long as you don’t specify the
--one-databasearg, there’s nothing preventing you from adding aUSE <some-other-db>;statement as necessary within your.sqlfile.