• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Importing mysql database error database exists

So I recently have been trying to move my Xenforo forums to my new server. I've tried to upload the database to phpmyadmin, but the file is to big. So I've tried to import it via SSH I used this command
mysql -u root -p forums < localhost.sql
Afterward I get:

Unknown database 'forums'

So I create a database and it says:

ERROR 1007 (HY000) at line 21: Can't create database 'forums'; database exists.

What should I do?