phpmyadmin is working fine, but I can not find the config.inc.php file?

This is strange

I have installed phpmyadmin 4.2.5 on my windows 7 computer, it currently works fine and is located in localhost / phpmyadmin

I can browse, edit, create databases, tables, etc.

Now I wanted to change some parameters, and so I looked for the config.inc.php file in the phpmyadmin directory, but is it not there?

I have config.sample.inc.php, but obviously this is just a sample

I did a search and the only config.inc.php file is in the / setup / frames / folder, which is clearly not the main configuration file.

So where is it? I installed phpmyadmin last month and I think I just copied it to the htdocs folder, nothing special, but I don’t remember if I did something else.

+8
source share
5 answers

The config.inc.php file is not required and is only needed for user configurations.

phpmyadmin first references ./libraries/config.default.php to get the default values.

If for some reason you need to change the default values ​​and the ./config.inc.php file does not exist, you will need to create it in accordance with Installation .

You also need to configure pmadb for some special phpmyadmin features like bookmarks.

+14
source

rename config.sample.inc.php to config.inc.php and edit whatever you want in it.

+3
source

if by mistake you changed your user's default password ("root") and now phpmyadmin does not even allow you to open it, than:

  1. go to config.inc.php file

  2. change your $ cfg ['Servers'] [$ i] ['password'] = ''

enter your password in the '' that you changed.

C: \ wamp \ apps \ phpmyadmin4.1.14 for config.inc.php

+3
source

Open [web_root]/libraries/Config.class.php add these lines to the beginning of the load method:

  var_dump( $this->default_source); var_dump( CONFIG_FILE); die; 

Open phpmyadmin. This is the order of loading the configuration files, they create the $cfg variable, which is the PMA configuration, for me the output was:

 '[mywebroot]./libraries/config.default.php' '/etc/phpmyadmin/config.inc.php' 

Make sure that the last file that is intended for local changes exists and has the correct permissions. Then get rid of the added lines.

Additional Information

The PMA loads the global configuration into the libraries/common.inc.php:306 file.

 $GLOBALS['PMA_Config'] = new PMA_Config(CONFIG_FILE); 

Global is an instance of PMA_Config , whose constructor calls the load method. In boot mode, the parameter passed to the constructor, CONFIG_FILE used to load the configuration.

+1
source

Go to c: \ xamp \ phpmyadmin . The config.inc.php file will be present in this folder.

0
source

Source: https://habr.com/ru/post/973004/


All Articles