Steps
- Connect to source phpmyadmin
- Download .sql
- Edit .sql as necessary
- Login to Synology DSM
- Upload edited .sql
- Enable SSH
- Check DSM global ip inside DSM external access
- Login to destination phpmyadmin and drop the database to be replaced
- Remote login to router
- Enable port forward for synology SSH port
- Putty to DSM using global ip via port enabled in the router
- Transfer .sql to database using /mariadb路径/mysql -uroot -ppassword my_db < /volume1/文件路径/文件.sql