Login with user password in phpMyAdmin _php tutorial

Source: Internet
Author: User
People who have used phpMyAdmin know that in phpMyAdmin, the use of file config.inc.php to save the user name and password, when the need to change the user or user password changes, you must modify the config.inc.php file, and then upload, especially inconvenient. Sometimes, in order to modify the MySQL library or table to use the root account, if at this time the other site's automatic search system index.php and continue to carry out each of these steps, it is very dangerous. A user login mechanism is required for this purpose, and it is much safer to enter the user name and password each time it is used.
The following is my management process, according to the actual needs of the phpMyAdmin made some changes, in order to try not to affect the original phpMyAdmin structure, I added a file on the basis of phpMyAdmin index0.php, just modified a file config.inc.php, no impact on phpMyAdmin, can either use the original phpMyAdmin, can also use the new user password login mechanism.
The following is a list of two files, copy these two files to the phpMyAdmin directory, execute index0.php, the program in Apache + PHP + mysql and IIS5 + php + mysql and PWS + php + mysql normal execution.
PhpMyAdmin Download:
A 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:

<title>MySQL Maintenance</title>
PHP is not working properly, please check

config.inc.php file

/* $Id: Config.inc.php,v 1.28 2000/07/13 13:52:48 Tobias EXP $ */

Encoding to prevent display on the address bar
function b2h ($string) {
Return (Bin2Hex (Strrev ($string)));
}

Anti-coding to prevent display on the address bar
function H2B ($string)

http://www.bkjia.com/PHPjc/532463.html www.bkjia.com true http://www.bkjia.com/PHPjc/532463.html techarticle people who have used phpMyAdmin know that in phpMyAdmin, using the file config.inc.php Save the user name and password, when you need to change the user or user password changes, you must modify the config.inc.php text ...

  • Related Article

    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.