You’ll need to access the wp-config.php file on your server via FTP or SFTP, not a file on your computer.
Once you have access, make sure that the database connection details are correct. If they are, you’ll need to contact your hosting provider to find out why your database server is offline.
I thought I did access through FTP. I’m using Filezilla and I’m able to log in.
I get “failed to open” on everything in public_html where the wp-config is located.
I don’t think I have anything on the computer. Never used FTP before. Always worked on the site while online.
Hi tasteofscan
Try editing the file by using the file manager provided in your host’s control panel.
more about file managers
This seems like it’s a permissions issue.
http://codex.ww.wp.xz.cn/Changing_File_Permissions
Can you download other files with Filezilla?
If so ask your host if they have some restrictions for the wp-config.php file.
I think you’re downloading the file to a read-only directory on your computer.
Select a different directory to download to on your computer. Try your documents or downloads folder.
I changed the dir to documents and I was able to download the wp-config file but I don’t have a program that can open it.
What should I use?
Thank you! I got Notepad++ and Filezilla to work together. Now I can try to deal with the original problem I am having “Error establishing a database connection.” But that is a new topic…
You’re welcome. And good luck.