how do i import a site given that i have [domain].sql and a folder of site files? [closed]

  1. put your files to your file system on server as usual
  2. create phpinfo file and put it to the same folder as your WP
  3. find relative path ($_ENV['CONTEXT_DOCUMENT_ROOT'] or $_ENV['DOCUMENT_ROOT'])
  4. update relative path of web hosting everywhere in your SQL in wp_options (try to find e.g. uninstall_plugins)
  5. in wp_options update also first two inputs

OR

just put this to your wp-config.php and everything else should be set automatically:

define('WP_HOME','http://localhosturl.com');
define('WP_SITEURL','http://localhosturl.com');

error code: 523