WordPress.org

Ready to get started?Download WordPress

Forums

Problem connecting to database (1 post)

  1. Slisse23
    Member
    Posted 9 months ago #

    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

Reply

You must log in to post.

About this Topic