I wrote some code directly in functions.php for creating something like a tagcloud. Which wordked out fine when I was testing this on a wamp localhost server..
When I’m trying to integrate the exact same code into an online site.. It’s giving me the following error.
access denied for user ‘blabla’@’localhost’ (using password yes)
I’m trying to connect to like to the database the same way I did it on my local server.. And yes I’m sure my user/password is correct..
$db = new mysqli(“localhost”, “blabla”, “my_pass”, “my_database”);
Anyone an idea of what i’m doing wrong ?
Should I use something else than “localhost”?
- The topic ‘Problem connecting to database’ is closed to new replies.