Skip to content

mysqli_real_connect(): (HY000/2002) error when uploading files #245

Open
@lucaspoignon

Description

@lucaspoignon

Operating System: Windows 10
Vagrant Version: 1.9.2
Virtual Box Version: 5.1.6

From time to time, when I try to add a couple of images to the Wordpress media library, it seems my db server crashes and I get the following error:

( ! ) Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /var/www/html/wp-includes/wp-db.php on line 1538
Call Stack

Time Memory Function Location

1 0.2006 362840 {main}( ) .../index.php:0
2 0.2006 363128 require( '/var/www/html/wp-blog-header.php' ) .../index.php:17
3 0.2006 363480 require_once( '/var/www/html/wp-load.php' ) .../wp-blog-header.php:13
4 0.2009 364256 require_once( '/var/www/html/wp-config.php' ) .../wp-load.php:37
5 0.2010 365752 require_once( '/var/www/html/wp-settings.php' ) .../wp-config.php:87
6 0.2036 619864 require_wp_db( ) .../wp-settings.php:107
7 0.2041 633232 wpdb->__construct( ) .../load.php:404
8 0.2041 634016 wpdb->db_connect( ) .../wp-db.php:658
9 0.2041 634480 mysqli_real_connect ( ) .../wp-db.php:1538

I have to wait like half an hour or reset the virtual box in order for it to work again. The problem also seems pretty random. Planning to go live next week and would like to know if this is a problem with the vagrant / virtual box or if I will also have this problem on a normal host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions