Error establishing a database connection – frustrated
-
I get this message when I try to access my site.
The site was working properly, and I tried to add google analytics…
Anyway, sodabrasil was a site created out of WP.
sodabrasil.com/paskin was WP.
We did the integration of logins. Everything was working.
When I run https://sodabrasil.com/dbtest.php, it says it’s connected.
this is the debug code.<?php //connect to MySQL Server $conn = mysql_connect("localhost", "*****", "******"); if (!$conn) { die(mysql_error()); } else { echo "1. Successfully connected to MySQL database server. "; } // select database $db_sel = mysql_select_db('houswe5_securelogin', $conn); if (!$db_sel) { die ('cant\'t use database: ' . mysql_error()); } else { echo "2. WordPress database selected. "; } ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
securelogin is the sodabrasil DB for the login.
But accessing sodabrasil is blocked even before the login!!!I am not a professional coder, which makes things a lot harder.
Thank you for you help.
G.
- The topic ‘Error establishing a database connection – frustrated’ is closed to new replies.