database error, config probably set up wrong, can’t migrate live site to local
-
I’m new to WordPress (as in I have no idea what I’m doing) and I’ve been following this tutorial on a mac:
https://www.wpbeginner.com/wp-tutorials/how-to-move-live-wordpress-site-to-local-server/
When I get to step 3, and try to update my urls, I see this at the bottom:
0 rows affected. (Query took 0.0035 seconds.)
UPDATE wp_postmeta SET meta_value = replace(meta_value,’https://cosmicpeach.com’,’https://localhost:8888/sites/cosmicpeach’)I’m not sure if these are supposed to be affected, but the top two queries showed me a number of rows that were changed/affected. Maybe this is where I went wrong?
When I go to the local url, I get a database error for https://localhost:8888/sites/cosmicpeach/
It says this:
Error establishing a database connectionI tried updating my wp_config file, but it’s still not connecting, so I’m not sure if maybe I typed in the wrong info to the wp_config file or what exactly it is that I have done. Can anyone help me please?
Thank you in advance.
- The topic ‘database error, config probably set up wrong, can’t migrate live site to local’ is closed to new replies.