WordPress migration from live server to localhost having 404 error? [closed]

wp_options isn’t the only place you need to change the link, do the following :
Go to the live site and download the plugin WP Migrate DB, it has really good interface so you will make it from there. The plugin will change all links and give you exported .sql file with them, without changing anything in the live site, then import the new database to localhost, delete or rename your .htaccess file on the localhost enviroment I personally put ~~ before the dot, and make sure to go to 127.0.0.1/exampledir/wp-admin and save your permalink structure to generate new .htaccess file.