• ERROR : mysql_connect() [function.mysql-connect]: User already has more than 'max_user_connections' active connections in /nfs/c09/h01/mnt/12345/domains/domain_name/html/wp-includes/wp-db.php on line 1372.
    Showing this error in every update of theme page of wordpress site. I have close the connection mysql_close(); still getting error.

    Can you suggest me any solution of “Error establishing a database connection”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is a hosting level problem, not a WordPress error. Your web hosting provider may be overloaded if you are on shared hosting, or if you are on a VPS, dedicated server etc you’ll need to check your max_user_connection setting in your .my.cnf file, typically at /etc/my.cnf

    Thread Starter Bhavika Jadav

    (@bhavika-jadav)

    Thanks for supporting.

    I have added below query. Is this the reason its showing error:

    $meta_query[] = array(
    'key'     => 'sunday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'sunday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );
    $meta_query[] = array(
    'key'     => 'monday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'monday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );
    $meta_query[] = array(
    'key'     => 'tuesday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'tuesday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );
    $meta_query[] = array(
    'key'     => 'wednesday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'wednesday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );
    $meta_query[] = array(
    'key'     => 'thursday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'thursday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );
    $meta_query[] = array(
    'key'     => 'friday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'friday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );
    $meta_query[] = array(
    'key'     => 'saturday_happy_hour_start_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '>='
    );
    $meta_query[] = array(
    'key'     => 'saturday_happy_hour_end_time',
    'value'   => $_GET['time'],
    'type'    => 'DECIMAL(4,2)',
    // show searched for time along with later times as well...
    'compare' => '<='
    );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Already has more than 'max_user_connections' active connections wp-db.php’ is closed to new replies.