I exported all the tables from phpmyadmin and imported the database to my database at my xamp server.
after that i downloaded all the wordpress files from my old hosting and transferred them to my theme in folder.
Finally i updated the database username and password in wp-config.php and also change the
define('WP_DEBUG', false);
to
define('WP_DEBUG', true);
But when i preview my website it shows blank white screen.
Moreover,I want to say I make new folder in htdocs folder and put the wordpress files init and then make a new folder in theme folder(sub folders of htdocs) and past my all theme files in it.