1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How do it convince phpMyAdmin to show all databases

Discussion in 'Plesk for Linux - 8.x and Older' started by joel69, Feb 15, 2006.

  1. joel69

    joel69 Guest

    I'd like for phpMyAdmin to show a list of all databases and allow access to all databases on the server when I log in using 'admin' or 'root', whichever is easier to convince to work.

  2. phoenixisp

    phoenixisp Silver Pleskian

    Feb 2, 2002
    Likes Received:
    Install the newest version of phpMyAdmin then edit the config.inc.php file at around line 69 to look like this:

    $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
    $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
    $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
    $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
    $cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
    $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
    // (requires PHP >= 4.3.0)
    $cfg['Servers'][$i]['controluser'] = 'admin'; // MySQL control user settings
    // (this user must have read-only
    $cfg['Servers'][$i]['controlpass'] = 'password'; // access to the "mysql/user" - use Plesk login password
    // and "mysql/db" tables).
    // The controluser is also
    // used for all relational
    // features (pmadb)
    $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
    $cfg['Servers'][$i]['password'] = 'root_password'; // MySQL password (only needed
    // with 'config' auth_type)
  3. sieb@

    sieb@ Guest

    Yea, just throw it under the admin/httpdocs directory in PSA. Or get the Powertools and open up the remote port, then use the mysql app to connect to it.