phpmyadmin 4+ accesses slow solutions

  • 2020-06-03 08:34:51
  • OfStack

1. Modify the localization time
Principle: Localization time formatting requires gettext support. If this is not enabled in your environment, it will return a garble affecting #phpmyadmin ajax processing. This test was verified on phpmyadmin 4.0.2 php 5.5.0.
Modification: / libraries Util. class. php file

#  To find the 
return strftime($date, $timestamp);
#  Replace with the following code :
  return strftime($date, $timestamp);
#  The Chinese section is set like this .
return gmdate('Y-m-d H:i:s', $timestamp + 28800);

2. Block online upgrades
Principle: phpmyadmin official website is GFW, the time of automatic checking and updating is wasted in the wall, just close it
Modify:./ version_check.php file, delete or comment out the following code

$save = true;
$file = '';
if (ini_get('allow_url_fopen')) {
    $response = file_get_contents($file);
} else if (function_exists('curl_init')) {
    $curl_handle = curl_init($file);
    curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
    $response = curl_exec($curl_handle);

Now log out and log back in to see if the seconds are up. Give it a try

Related articles: