Home php Error: when cookie authentication, in the configuration file you must set the...

Error: when cookie authentication, in the configuration file you must set the password phrase

Author

Date

Category

Help Find an error in the code This is config.inc.php

& lt;? php
$ CFG ['Servers'] [$ i] ['Host'] = 'Localhost';
$ CFG ['Servers'] [$ i] ['extension'] = 'mysql';
$ CFG ['Servers'] [$ i] ['Connect_Type'] = 'TCP';
$ CFG ['Servers'] [$ i] ['compress'] = false;
$ CFG ['Servers'] [$ i] ['auth_type'] = 'config'; // That do not miss it.
$ CFG ['Servers'] [$ i] ['user'] = 'root'; // MySQL user name.
$ CFG ['Servers'] [$ i] ['password'] = ''; // Here you need to enter your password to MySQL.
? & gt;

Work on the local host

Invalid server index:

When cookie authentication, in the configuration file, you must set the password phrase by setting the value of the $ CFG [‘blowfish_secret’] directive.


Answer 1, Authority 100%

& lt;? php
$ CFG ['blowfish_secret'] = 'BA17C1EC07D65003'; // Lack of this line
$ i = 0; $ i ++; // and here this
$ CFG ['Servers'] [$ i] ['Host'] = 'Localhost';
$ CFG ['Servers'] [$ i] ['extension'] = 'mysql';
$ CFG ['Servers'] [$ i] ['Connect_Type'] = 'TCP';
$ CFG ['Servers'] [$ i] ['compress'] = false;
$ CFG ['Servers'] [$ i] ['auth_type'] = 'config';
$ CFG ['Servers'] [$ i] ['user'] = 'root';
$ CFG ['Servers'] [$ i] ['password'] = '';
? & gt;

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions