Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31576

Slisse23 on "Problem connecting to database"

$
0
0

Hey all,

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"?

Thanks!

Greats,

Davey


Viewing all articles
Browse latest Browse all 31576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>