phpMyAdmin 4+ Access Slow resolution _MYSQL

Source: Internet
Author: User
Tags curl gettext phpmyadmin

1. Modify Localization Time
Principle: Localization time format need gettext support, if your environment does not turn on this function, will return garbled, affect #phpmyadmin ajax processing. This test is validated through the phpMyAdmin 4.0.2 PHP 5.5.0 environment.
modifying:./libraries/util.class.php files

Copy Code code as follows:

# find
Return strftime ($date, $timestamp);
# Replace with the following code:
if (extension_loaded (' GetText '))
Return strftime ($date, $timestamp);
# China area is set up like this.
Date_default_timezone_set (' UTC ');
Return Gmdate (' y-m-d h:i:s ', $timestamp + 28800);

2, Shielding online upgrade
Principle: phpMyAdmin Official website is GFW, automatically check the update time wasted in the wall to wait, close can
Modify:./version_check.php file, delete or comment out the following code
Copy Code code as follows:

$save = true;
$file = ' Http://www.phpmyadmin.net/home_page/version.json ';
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 quit, and then login to visit to see if the seconds have been opened? Let's try it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.