ronnicholls
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Unable to Connect to databaseResolved
Forum: Localhost Installs
In reply to: Unable to Connect to databaseForum: Localhost Installs
In reply to: Unable to Connect to databaseFrom another forum, I found that by adding the following to the foot of wp-config, that I now get a connection, but it is not formatted. More of an outline. Also I get 404 error when trying to access wp-admin ????
What WP subdirectories should I keep from production site, and which from a clean WP install (if any). I think this is what I am struggling with
/** Sets up WordPress vars and included files. */ define(‘WP_CACHE’, true); $currenthost = $_SERVER[‘HTTP_HOST’]; $mypos = strpos($currenthost, ‘localhost’); if ($mypos === false) { define(‘WP_HOME’,’https://YOURSITE.com’); define(‘WP_SITEURL’,’https://YOURSITE.com’); } else { define(‘WP_HOME’,’https://localhost:8888′); define(‘WP_SITEURL’,’https://localhost:8888′); }
Forum: Localhost Installs
In reply to: Unable to Connect to databaseThanks. Will give it a go tomorrow
Forum: Localhost Installs
In reply to: Unable to Connect to databaseroot has global prieveledges on all databases but I agree that this seems to be the issue . . . . .
Do you have to perform a WP install for a new database? I was rather thinking that you could just use your production directories (and change wp-config). I ask this becasue if I do perform a WP install, it creates a database as part of the install (with nothing in it so to speak).
Forum: Localhost Installs
In reply to: Unable to Connect to database$table_prefix = ‘wp_’;
Thanks for response. This is how it is in production config. It is also how it is in dummy wordpress install on localhost so I left it alone. Seems that it just doesn’t want to recognise my imported database. I am using root/root as user credentials as production creds don’t work anyway