Plugins: All-in-One WP Migration, Duplicator, or Migrate Guru.
On the old host:
mysqldump -u dbuser -p dbname > wpdump.sql
Or via phpMyAdmin: select database → Export → Quick → Go.
Download all files from public_html/ via FTP to your computer, then upload to the new host.
In DirectAdmin, create a new database and user.
mysql -u newdbuser -p newdbname < wpdump.sql
Or via phpMyAdmin → Import.
Edit public_html/wp-config.php:
define('DB_NAME', 'newusername_dbname');
define('DB_USER', 'newusername_dbuser');
define('DB_PASSWORD', 'newpassword');
define('DB_HOST', 'localhost');
If the domain has changed, run in phpMyAdmin:
UPDATE wp_options SET option_value = 'https://newdomain.com' WHERE option_name IN ('siteurl', 'home');
Or via WP-CLI:
wp search-replace 'https://olddomain.com' 'https://newdomain.com' --all-tables