How to migrate the database from About Piwik 2.12.1 to matomo 3.9.1

Hello,

I have a piwik version 2.12.1 and I want to upgrade to matomo 3.9.1.
I would like to keep my old data.
I have exported my database and have the dump.
Am I able to import that dump (coming from MySQL 5.5.40 ) to the database used n matomo 3.9.1.
-if so, could you help me out with the steps here ?

best regards, Ing