admin管理员组

文章数量:1306856

I'm using Wordpress Instant for my development environment. It's a portable dev environment that allows me to run a local wp install off a usb, so it's portable and I can take it from one computer to the next in a nice self contained fashion.

Previously I was using MAMP.

The initial wp install went fine, I imported my theme and plugins, and updated everything that needed updating.

I created a new database inside phpadmin, and then imported the old database into it. I set the wp-config file to have the right database name, username, and password etc. But when I try to open up the front page or wp-login of the website I get a connection refused error.

Any idea what's going on here?

I'm using Wordpress Instant for my development environment. It's a portable dev environment that allows me to run a local wp install off a usb, so it's portable and I can take it from one computer to the next in a nice self contained fashion.

Previously I was using MAMP.

The initial wp install went fine, I imported my theme and plugins, and updated everything that needed updating.

I created a new database inside phpadmin, and then imported the old database into it. I set the wp-config file to have the right database name, username, and password etc. But when I try to open up the front page or wp-login of the website I get a connection refused error.

Any idea what's going on here?

Share Improve this question asked Sep 23, 2017 at 2:10 Aslan FrenchAslan French 2354 silver badges18 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 3

Found the answer. I needed to update my siteurl and home in the database: https://stackoverflow/questions/27966733/can-not-connect-to-wordpress-in-localhost-get-http-localhost-neterr-connec

I was seeing a similar issue which was mainly caused by not looking through my entire config file and the fact that I'm a Wordpress newby.

I needed to restart apache using sudo apachectl restart and then I found that $table_prefix was set to 'wp_' by default in my wp-config.php file. By updating the field it loaded fine. You could also rename your table to add the prefix, though this could lead to other issues if you were expecting the name to not have it.

本文标签: importConnection refused on locahost after importing database