Web Design and Web Development Forum

  1. #1
    Join Date
    Oct 2006
    Posts
    94
    Rep Power
    6
  2. hendy is on a distinguished road
  3. phpmyadmin login page

    hi all..
    i'm having problem with my phpmyadmin, i got the zip of the phpmyadmin from phpmyadmin.net
    and after i copy the phpmyadmin zip i write the config.ini.php
    here's the code :
    PHP Code:
    <?php

    /* $Id: config.sample.inc.php 9675 2006-11-03 09:06:06Z nijel $ */
    // vim: expandtab sw=4 ts=4 sts=4:

    /**
    * phpMyAdmin sample configuration, you can use it as base for
    * manual configuration. For easier setup you can use scripts/setup.php
    *
    * All directives are explained in Documentation.html and on phpMyAdmin
    * wiki <http://wiki.cihar.com>.
    */

    /*
    * This is needed for cookie based authentication to encrypt password in
    * cookie
    */
    $cfg['blowfish_secret'] = ''/* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

    /*
    * Servers configuration
    */
    $i 0;

    /*
    * First server
    */
    $i++;

    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = 'password'// Your MySQL Password


    /* 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';
    /* User for advanced features */
    $cfg['Servers'][$i]['controluser'] = 'root';
    $cfg['Servers'][$i]['controlpass'] = 'password'// Your MySQL Password
    /* 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';

    /*
    * End of servers configuration
    */

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

    ?>
    then i try to enter the page http://localhost/phpmyadmin
    but the page doesn't ask me about the username and password anymore and just go to the main page..i need the phpmyadmin to ask the username and password first.
    if i just remove the password variable the page returns error..

    anyone can help?
    thx..
    Reply With Quote Reply With Quote
  4. #2
    Join Date
    Dec 2006
    Location
    University of York, UK
    Age
    22
    Posts
    1,837
    Rep Power
    7
  5. Mike Tomasello is on a distinguished road
  6. Re: phpmyadmin login page

    Make sure auth_type is set to 'cookie':
    PHP Code:
    $cfg['Servers'][$i]['auth_type'] = 'cookie'
    Also remember to put some random blowfish secret:
    PHP Code:
    $cfg['blowfish_secret'] = 'askldjkH2hj3jasd'
    Leave 'user' and 'password' blank.
    Reply With Quote Reply With Quote
  7. #3
    Join Date
    Oct 2006
    Posts
    94
    Rep Power
    6
  8. hendy is on a distinguished road
  9. Re: phpmyadmin login page

    it works...
    thank you very much Mike

    Gbu..
    Reply With Quote Reply With Quote

Similar Threads

  1. My newer website. Need some help.
    By NaRzY in forum HTML/CSS Coding
    Replies: 4
    Last Post: 03-26-2007, 03:49 AM
  2. Beginner HTML Guide.
    By Hybr!d in forum HTML & CSS Articles
    Replies: 2
    Last Post: 06-07-2006, 02:22 PM
  3. User Login Problem
    By johnnie in forum PHP Scripting
    Replies: 1
    Last Post: 04-30-2006, 02:59 PM
  4. Writing Your First Page
    By wizard in forum HTML & CSS Articles
    Replies: 2
    Last Post: 01-06-2005, 02:34 AM
  5. page generation time
    By Randi in forum PHP Articles
    Replies: 0
    Last Post: 09-03-2004, 07:02 PM