Taperssection.com

Gear / Technical Help => Post-Processing, Computer / Streaming / Internet Devices & Related Activity => Topic started by: Fatah Ruark (aka MIKE B) on June 15, 2009, 01:36:47 PM

Title: TSKB: PHPmyAdmin login help
Post by: Fatah Ruark (aka MIKE B) on June 15, 2009, 01:36:47 PM
So I'm trying to build a server with Ubuntu, LAMP and Drupal. I've got LAMP and Drupal installed and working (somewhat).

I need to upgrade Drupal and would like to backup the database (even though I probably don't need to).

I am trying to login to phpmyadmin via my browser and I use the default user name (root) and password (which is blank). When I do this it says "access is denied"

I've read up on how to fix this and most of the answers I've found are pretty vague or assume I have a lot more knowledge than I actually have.

From what I've read it seems I need to edit the config.inc.php file, but can't really figure out where to change what I need to change.

Anyone have any idea how to fix this?

Here is what the file looks like now:

Quote
<?php
/**
 * Debian local configuration file
 *
 * This file overrides the settings made by phpMyAdmin interactive setup
 * utility.
 *
 * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
 *
 * NOTE: do not add security sensitive data to this file (like passwords)
 * unless you really know what you're doing. If you do, any user that can
 * run PHP or CGI on your webserver will be able to read them. If you still
 * want to do this, make sure to properly secure the access to this file
 * (also on the filesystem level).
 */

/**
 * Server(s) configuration
 */
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;

/* Read configuration from dbconfig-common */
require('/etc/phpmyadmin/config-db.php');

/* Configure according to dbconfig-common if enabled */
if (!empty($dbname)) {
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'config';
    /* Server parameters */
    if (empty($dbserver)) $dbserver = 'localhost/';
    $cfg['Servers'][$i]['host'] = $dbserver;

    if (!empty($dbport)) {
        $cfg['Servers'][$i]['connect_type'] = 'tcp';
        $cfg['Servers'][$i]['port'] = $dbport;
    }
    //$cfg['Servers'][$i]['compress'] = false;
    /* Select mysqli if your server has it */
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    /* Optional: User for advanced features */




    $cfg['Servers'][$i]['controluser'] = $dbuser;
    $cfg['Servers'][$i]['controlpass'] = $dbpass;
    /* Optional: Advanced phpMyAdmin features */
    $cfg['Servers'][$i]['pmadb'] = $dbname;
    $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
    $cfg['Servers'][$i]['relation'] = 'pma_relation';
    $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
    $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
    $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
    $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
    $cfg['Servers'][$i]['history'] = 'pma_history';
    $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

    /* Advance to next server for rest of config */
    $i++;
}

/* Authentication type */
//$cfg['Servers'][$i]['auth_type'] = 'config';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost/';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
//$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
//$cfg['Servers'][$i]['extension'] = 'mysql';
/* Optional: User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Optional: Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

Title: Re: TSKB: PHPmyAdmin login help
Post by: Sebastian on June 15, 2009, 03:31:13 PM
MySQL has its own password database (it's actually a database called "mysql" IIRC). Here's some documentation on how to set up MySQL:
http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html
Title: Re: TSKB: PHPmyAdmin login help
Post by: phanophish on June 18, 2009, 03:01:44 PM
You are also scaring me with a blank root password......
Title: Re: TSKB: PHPmyAdmin login help
Post by: crazifyngers on June 19, 2009, 05:01:12 PM
^^ first thing i though
Title: Re: TSKB: PHPmyAdmin login help
Post by: runonce on August 13, 2009, 10:24:16 PM
Ubuntu Server Editon or Desktop?

IIRC - If you install PhpMyAdmin from the Synaptic Package manager - it will prompt you to create a user/password...