mysql -h remote-host.com -u admin -p < backup.sql
Here’s a short informational piece on the topic: mysql 5.7 command line client download
Test a connection to a remote server:
MySQL 5.7 Command Line Client is a lightweight tool for interacting with the MySQL server via text commands. While MySQL 5.7 has reached its End of Life mysql -h remote-host
: Always download MySQL software from official sources. Third-party sites may bundle malware or outdated versions. mysql 5.7 command line client download
After completing the and installation, run this simple test:
sudo yum install mysql-community-client-5.7