![]() ![]() ![]() You may have made an error installing WordPress or migrating it. ![]() Since this is the case, the trickiest part of fixing this error is figuring out exactly what caused it.īeyond not being able to connect to your database, here are more specific reasons behind what may have caused this error: Your PHP files are unable to connect to your database and there could be many reasons for it. “Error establishing a database connection.” If something’s wrong with your database, your PHP files can request information from your database, but when your database doesn’t respond back by serving up the requested data, you’re left with the error: Both sets of information are then put together so your site can be displayed when a browser asks for the page to load. Your PHP files are built to request this information from your database and your database sends this information along to your files. Your MySQL database stores much of the data that displays on your site such as usernames, passwords, posts, categories, tags and other content. Your site can be seen as having two main parts to it: Your files and your database. What Is This Error and How Does It Happen? I recommend starting at the top of the list of solutions and working your way down until your site is back up. #MAMP ERROR ESTABLISHING A DATABASE CONNECTION HOW TO#Read on to find out more about this error, how it happens and how to fix it. In any case, you’ll be happy to know it’s usually one of the simpler WordPress errors to resolve. In most cases, this error appears because the credentials you entered for your database aren’t correct, you made a mistake installing or migrating your site, or your database tables are corrupted. If WordPress is throwing up a message telling you “Error establishing database connection” on an otherwise blank page, it means your database cannot be reached. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |