In phpmyadmin in ubuntu, cookies must be enabled to log on. how can this problem be solved?

Source: Internet
Author: User
In ubuntu, phpmyadmin must enable cookies to log on. how can this problem be solved? after phpmyadmin is installed in ubuntu, you can log on for the first time, prompting that you must enable cookies to log on, and then you cannot log on. please consult with Masters, how to solve this problem in ubuntu ------ solution ------------------ apt-get installed? I see other people have this problem. can you see if phpmyadmin in ubuntu can solve this problem by enabling cookies?
After phpmyadmin is installed in ubuntu, you can log on for the first time, prompting that you must enable cookies to log on. then, you cannot log on. Ask the experts to solve this problem in ubuntu.

------ Solution --------------------
Apt-get installed? I see other people have such problems. can you solve them for you?

When using the latest phpMyAdmin, the logon page always prompts "you must enable Cookies to log on". This problem has plagued me many times.

I searched through google and baidu for a solution for N people. it seems that none of them work, and the problem still exists.
Later, I made some modifications and suddenly got better. the solution is as follows.

You can directly save the configuration file config. sample. inc. php in The phpMyAdmin installation directory as config. inc. php. This is correct. Note the following points:
$ Cfg ['blowfish _ secret '] = 'cookies'; be sure to fill in. generally, fill in the cookie.
In addition, if mysql uses socket connection, do not forget to modify the following line:
$ Cfg ['servers'] [$ I] ['connect _ type'] = 'socket ';

The above steps can be correctly modified by the average person, but only the config under the root directory is modified. inc. php files cannot be modified. another file needs to be modified, that is, the config under the libraries Directory. default. php file.

In the config. default. php file, the following must be modified:
$ Cfg ['blowfish _ secret '] = 'cooker'; the file is empty by default. enter the same value as config. inc. php.
If mysql uses socket connection, modify the following two lines:
$ Cfg ['servers'] [$ I] ['sockets '] ='/tmp/mysql. sock '; this parameter must be set based on your mysql configuration. if you do not know how to leave it blank, use the default mysql settings.
$ Cfg ['servers'] [$ I] ['connect _ type'] = 'socket ';

REFRESH The phpMyAdmin logon page. The problem is solved!

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.