WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-db.php error on line 1141 (4 posts)

  1. deeeeeeeeeen
    Member
    Posted 1 year ago #

    Hi
    I duplicated WP folder & db to another server with different ip address, wed page cannot open, so I changed 'WP_DEBUG', to true , then it shows "Warning: mysql_connect(): Host '192.168.8.8' is not allowed to connect to this MySQL server in /var/zpanel/hostdata/osyncehk/public_html/wp-includes/wp-db.php on line 1141

    then I look up line 1141

    $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
    } else {

    I have no idea how to solve the problem, cause I am very new in wordpress.

    please help !!! Thank you in advance

  2. Gregg Banse
    Member
    Posted 1 year ago #

    That sounds like the wp-config.php file was not configured correctly for the new webserer - eg. it's trying to connect to the db on the origninal host.

  3. deeeeeeeeeen
    Member
    Posted 1 year ago #

    My tech support teach me to run this on mysql
    "grant all on db_name.* to db_username@192.168.8.8 identified by 'password';flush privileges;"
    and it is working fine
    Thank you

  4. Or in English " The user ID for the DB didn't have full permissions to the database."

Topic Closed

This topic has been closed to new replies.

About this Topic