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 badges2 Answers
Reset to default 3Found 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
版权声明:本文标题:import - Connection refused on locahost after importing database? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741825169a2399599.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论