admin管理员组文章数量:1022794
I'm doing some work on a client's wordpress so to not touch the live I imported what I thought I needed from their FTP into my xampp to reproduce their environment. Their website is hosted on bluehost, for reference.
I Exported/imported their phpmyadmin database, as well as copying over the parent theme and the child theme from FTP. I copied over the wp-config.php for database credentials. It seems like i'd have covered all the bases but it's giving me that error still. What else could I be missing to get this working?
DB_HOST is also already set to localhost
Googling this error didn't yield much for my scenario
Are there more things I should import over from their FTP to emulate 1:1 their environment?
Thanks
I'm doing some work on a client's wordpress so to not touch the live I imported what I thought I needed from their FTP into my xampp to reproduce their environment. Their website is hosted on bluehost, for reference.
I Exported/imported their phpmyadmin database, as well as copying over the parent theme and the child theme from FTP. I copied over the wp-config.php for database credentials. It seems like i'd have covered all the bases but it's giving me that error still. What else could I be missing to get this working?
DB_HOST is also already set to localhost
Googling this error didn't yield much for my scenario
Are there more things I should import over from their FTP to emulate 1:1 their environment?
Thanks
Share Improve this question asked Apr 23, 2019 at 2:24 DennisioDennisio 151 silver badge5 bronze badges2 Answers
Reset to default 1The database password is not stored in the database itself, so importing the database via phpmyadmin will not also import the password. You need to manually edit your local copy of wp-config.php
, and enter your local username and password for MySQL ( or any other database you are using ).
Usually the default username for local development installations is root
, and the password is blank, so you can try these. Otherwise, you can check xampp's website to see what the default password, or if you have already set your own password during installation, you can use that.
If you need to move more sites in the future, Duplicator plugin is nice and easy.
It will create two files, an archive and a install file. Upload the files to your server, create the database and user, run the installer file and it will guide you through the process. Everything will be copied over and it will allow you to update the site links and all the database connections.
The only catch is that it can timeout on very large sites.
I'm doing some work on a client's wordpress so to not touch the live I imported what I thought I needed from their FTP into my xampp to reproduce their environment. Their website is hosted on bluehost, for reference.
I Exported/imported their phpmyadmin database, as well as copying over the parent theme and the child theme from FTP. I copied over the wp-config.php for database credentials. It seems like i'd have covered all the bases but it's giving me that error still. What else could I be missing to get this working?
DB_HOST is also already set to localhost
Googling this error didn't yield much for my scenario
Are there more things I should import over from their FTP to emulate 1:1 their environment?
Thanks
I'm doing some work on a client's wordpress so to not touch the live I imported what I thought I needed from their FTP into my xampp to reproduce their environment. Their website is hosted on bluehost, for reference.
I Exported/imported their phpmyadmin database, as well as copying over the parent theme and the child theme from FTP. I copied over the wp-config.php for database credentials. It seems like i'd have covered all the bases but it's giving me that error still. What else could I be missing to get this working?
DB_HOST is also already set to localhost
Googling this error didn't yield much for my scenario
Are there more things I should import over from their FTP to emulate 1:1 their environment?
Thanks
Share Improve this question asked Apr 23, 2019 at 2:24 DennisioDennisio 151 silver badge5 bronze badges2 Answers
Reset to default 1The database password is not stored in the database itself, so importing the database via phpmyadmin will not also import the password. You need to manually edit your local copy of wp-config.php
, and enter your local username and password for MySQL ( or any other database you are using ).
Usually the default username for local development installations is root
, and the password is blank, so you can try these. Otherwise, you can check xampp's website to see what the default password, or if you have already set your own password during installation, you can use that.
If you need to move more sites in the future, Duplicator plugin is nice and easy.
It will create two files, an archive and a install file. Upload the files to your server, create the database and user, run the installer file and it will guide you through the process. Everything will be copied over and it will allow you to update the site links and all the database connections.
The only catch is that it can timeout on very large sites.
本文标签: importError establishing a database connection After importing DB amp Theme
版权声明:本文标题:import - Error establishing a database connection; After importing DB & Theme 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745563096a2156280.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论