• https://mybestshop.si

    (@easylearningmentalhealth)


    Can someone please help me. I have error:

    Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ‘mybest01_art’@’localhost’ (using password: YES) in /home/mybest01/public_html/wp-includes/wp-db.php on line 1635

    Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/mybest01/public_html/wp-includes/wp-db.php on line 1667

    Warning: mysql_connect(): Access denied for user ‘mybest01_art’@’localhost’ (using password: YES) in /home/mybest01/public_html/wp-includes/wp-db.php on line 1667
    ———————————————————-
    Error on:
    Do I need to change anything here?
    1635:
    mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags );

    1667:
    if ( WP_DEBUG ) {
    $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator Yui

    (@fierevere)

    永子

    Check your wp-config.php file if database information is correct (notably – password for database)

    You can contact your webhosting support to get correct information for DB connection.

    Your other issue (Deprecation warning) can be solved by enabling PHP mysqli extension (now you only have “mysql” which is old and not present in PHP7+), webhost support can help with this too.

    Also consider upgrading PHP, you seem to have pre-7.0 version, if you are using “mysql” PHP extension.
    See https://wordpress.org/support/update-php/

Viewing 1 replies (of 1 total)

The topic ‘Error establishing a database connection’ is closed to new replies.