• Resolved alx359

    (@alx359)


    Needed to change define('DB_HOST', 'localhost') to define('DB_HOST', '127.0.0.1') but now can’t log into phpMyAdmin by either method, and getting the following message:

    Cannot log in to the MySQL server
    mysqli::real_connect(): (HY000/2002): No such file or directory

    Any filter etc. or other way to fix that?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alx359

    (@alx359)

    Okay, seems to have fixed this by changing this line in config.inc.php

    //$cfg['Servers'][$i]['host'] 			= 'localhost';
    $cfg['Servers'][$i]['host'] 			= '127.0.0.1';

    How to get that param changed properly and update-friendly?

    EDIT: Seems those values get populated during a clean install. Re-installed the plugin and the new db_host value was applied.

    EDIT2: Would suggest adding a button to re-scan those settings manually.

    Plugin Author ttodua

    (@ttodua)

    Hi Alex.
    Well, the PMA installation is made upon the plugin installation, so, changes will need reinstall.
    Of course, things might be more sophisticated (adding rescan buttons, etc..) but that will add spare code to the plugin, which we don’t consider at this moment.
    if user changes things manually, he manually should change that part too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot log in: No such file or directory’ is closed to new replies.