Use the user password to log on to phpMyAdmin

Source: Internet
Author: User
People who have used phpMyAdmin know that in phpMyAdmin, the file config. inc. php saves the user name and password. you must modify the config. inc. php files, and then upload them again, which is especially inconvenient. More often, you can use the root account to modify the MYSQL database or table. People who have used phpMyAdmin know that in phpMyAdmin, the file config. inc. php saves the user name and password. you must modify the config. inc. php files, and then upload them again, which is especially inconvenient. Even more, if the root account is used to modify the MYSQL database or table, the index is automatically searched by other websites. it is quite dangerous to continue executing every step of php. Therefore, the user login mechanism is required. it is much safer to enter the user name and password for each use.
The following are some changes made to phpMyAdmin during the management process based on actual needs. to minimize the impact on the structure of the original phpMyAdmin, I added a file index0.php based on phpMyAdmin, only one file config. inc. php does not have any impact on phpMyAdmin. you can either use the original phpMyAdmin or use the new user password logon mechanism.
The following are two file lists. copy these two files to The phpMyAdmin directory and execute index0.php, the program runs normally in Apache + PHP + MYSQL and IIS5 + PHP + MYSQl and PWS + PHP + MYSQL.
Download phpMyAdmin:
Set of PHP3-scripts to adminstrate MySQL over the WWW.
Version 2.1.0-08/06/2000
Http://www.phpwizard.net/projects/phpMyAdmin/

Index0.php file:

MySQL maintenance
PHP is not running properly. Please check

Config. inc. php file

/* $ Id: config. inc. php, v 1.28 2000/07/13 13:52:48 tobias Exp $ */

// Code to prevent display on the address bar
Function b2h ($ string ){
Return (bin2hex (strrev ($ string )));
}

// Anti-encoding to prevent display on the address bar
Function h2b ($ string)

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.