You would have to export the data base, and impirt it on the new server as well.
Then you would need to create a SQL user [note: it does not have to be the same sql user that you originally setup, but it does make this faster] and then give it permissions to the database that you just imported.
If you use a different SQL user username/password then you will have to edit the /include/ost-config.php and supply it with the new ones.