You need to copy your database content to the new database with a tool like phpMyAdmin. You can then update the server/database address in your config.php
.
If you have not yet added anything in your forum you can also delete the config file to restart the installation of Flarum.
Be careful with the mysql
table, you might blow up your MySQL installation by changing anything in it ?