@@ -425,7 +425,7 @@ public function test_mysqli_config() {
425
425
426
426
$ this ->html_table_open ( 'MySQL Configuration ' , '' , 'Required ' , 'Recommended ' , 'Current ' );
427
427
428
- $ result = mysqli_query ( "SHOW VARIABLES LIKE 'have_query_cache' " , $ this -> db_link );
428
+ $ result = mysqli_query ( $ this -> db_link , "SHOW VARIABLES LIKE 'have_query_cache' " );
429
429
if ( $ result != false ) {
430
430
while ( $ row = mysqli_fetch_assoc ( $ result ) ) {
431
431
if ( strtolower ( $ row ['Value ' ] ) == 'yes ' ) {
@@ -436,7 +436,7 @@ public function test_mysqli_config() {
436
436
}
437
437
}
438
438
439
- $ result = mysqli_query ( "SHOW VARIABLES LIKE 'query_cache_size' " , $ this -> db_link );
439
+ $ result = mysqli_query ( $ this -> db_link , "SHOW VARIABLES LIKE 'query_cache_size' " );
440
440
if ( $ result != false ) {
441
441
while ( $ row = mysqli_fetch_assoc ( $ result ) ) {
442
442
if ( intval ( $ row ['Value ' ] ) >= 8388608 ) { // 8mb
@@ -448,7 +448,7 @@ public function test_mysqli_config() {
448
448
}
449
449
}
450
450
451
- $ result = mysqli_query ( "SHOW VARIABLES LIKE 'query_cache_type' " , $ this -> db_link );
451
+ $ result = mysqli_query ( $ this -> db_link , "SHOW VARIABLES LIKE 'query_cache_type' " );
452
452
if ( $ result != false ) {
453
453
while ( $ row = mysqli_fetch_assoc ( $ result ) ) {
454
454
if ( strtolower ( $ row ['Value ' ] ) == 'on ' || strtolower ( $ row ['Value ' ] ) == '1 ' ) {
@@ -459,7 +459,7 @@ public function test_mysqli_config() {
459
459
}
460
460
}
461
461
462
- $ result = mysqli_query ( "SHOW VARIABLES LIKE 'log_slow_queries' " , $ this -> db_link );
462
+ $ result = mysqli_query ( $ this -> db_link , "SHOW VARIABLES LIKE 'log_slow_queries' " );
463
463
if ( $ result != false ) {
464
464
while ( $ row = mysqli_fetch_assoc ( $ result ) ) {
465
465
if ( strtolower ( $ row ['Value ' ] ) == 'yes ' || strtolower ( $ row ['Value ' ] ) == 'on ' ) {
@@ -472,7 +472,7 @@ public function test_mysqli_config() {
472
472
}
473
473
}
474
474
475
- $ result = mysqli_query ( "SHOW VARIABLES LIKE 'long_query_time' " , $ this -> db_link );
475
+ $ result = mysqli_query ( $ this -> db_link , "SHOW VARIABLES LIKE 'long_query_time' " );
476
476
if ( $ is_log_slow_queries == true && $ result != false ) {
477
477
while ( $ row = mysqli_fetch_assoc ( $ result ) ) {
478
478
if ( intval ( $ row ['Value ' ] ) <= 2 ) {
0 commit comments