Phpmyadmin login-free, phpmyadmin Login

Source: Internet
Author: User

Phpmyadmin login-free, phpmyadmin Login


Step 1:

Open phpmyadmin/libraries/plugins/auth/AuthenticationCookie. class. php

Find the definitions of the functions authCheck and authSetUser, and add return true directly at the beginning of the function body. This means that the two functions will only return true at any time.


After step 1, you can automatically access the dashboard without logging on to phpmyadmin every time you open it. However, you will still be prompted that your token has expired after a long time of no operation. You need to refresh the page.

So the second step is to solve this problem.


Step 2:

Open phpmyadmin/libraries/common. inc. php

Find the following code:

$token_mismatch = true;if (PMA_isValid($_REQUEST['token'])) {    $token_mismatch = ($_SESSION[' PMA_token '] != $_REQUEST['token']);}

Insert a sentence after it:

$token_mismatch = false;



Unable to log on to phpmyadmin

I used to be correct, and the restart may be useful.
Also, use localhost/instead of 127.0.0.1.

Read the following article in workshop.

Install phpMyAdmin

Download the phpMyAdmin-2.10.0.2-all-languages.zip, decompress it to the root directory of your website, and rename it phpMyAdmin,
Find and open libraries/config. default. php (some versions are config. inc. php or config. defaut. php in the current directory)
Make the following changes:

1. There are two rows for searching for the password:
$ Cfg ['servers'] [$ I] ['user'] = 'root ';
$ Cfg ['servers'] [$ I] ['Password'] = '';

Enter your mysql password in $ cfg ['servers'] [$ I] ['Password'] = ''.

2. Search for $ cfg ['pmaabsoluteuri '] and set it to the phpMyAdmin directory path, for example, localhost/phpMyAdmin /;

3 search $ cfg ['defaultlang '] and set it to zh-gb2312;

The following code is modified based on your own needs (if you are not familiar with the database code, do not modify it)
4. Search for $ cfg ['defaultcharset'] and set it to the encoding you want.

Open the browser and enter: localhost/phpMyAdmin/, Apache and MySQL are started,
If there is no error, it proves it is easy to use.

How to log on to phpmyadmin

Test the phpmyadmin folder to the server directory, find the folder from the browser, and enter the user name and password.

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.