1
votes

I'm using the My-SQL service on IBM Bluemix, for which I've deployed phpmyadmin-cf application to perform db operations. Before deploying I set

$cfg['Servers'][$i]['AllowNoPassword'] = true;

in the config.inc.php

However, when I try to login as root, with credentials:

Username: root

Password: ''

I get the following error: Cannot log in to the MySQL server

How do I solve this?

1

1 Answers

0
votes
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

The line above need to be added twice; once within within the if (!empty($dbname)) { statement, and another one outside of it (probably towards the end of the configuration file).

It should be as the following example;

if (!empty($dbname)) {
    // other configuration options
    $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
    // it should be placed before the following line
    $i++;
}

// other configuration options
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;