No because the database has to be server local. You can't MySQL connect to just anyone's database if you knew their host, port, username and password. That would be a dream for Hackers and a MAJOR security issue
Instead. Export the old database. Then import it to a new Database on the New Server and fill out the config file with the new database info.