10.0.17-MariaDB migration to Percona Server 5.7

we wanna migration database mariadb to percona server

(10.0.17-MariaDB migration to Percona Server 5.7)

can just replace basedir using percona server? and mysql_upgrade

or should mysqldump all data , and source to percona server

10.0.17-MariaDB upgrade to Percona Server 5.7 can using percona server mysql_upgrade?