1

Тема: Помогите со входом в phpmyadmin

Дело в том, что нужно было поменять пароль root пользователю, я  поменяла пароль в разделе phpmyadmin:

- привелегии специфичные для базы данных

-ИЗМЕНИТЬ ПАРОЛЬ:
  ввела новый пароль с подтверждением.

-Изменить информацию логина/копировать пользователя


теперь выходит ошибка :
Добро пожаловать в phpMyAdmin 2.5.7-pl1
phpMyAdmin попытался соединиться с сервером MySQL, но сервер отверг соединение. Проверьте имя хоста, пользователя и пароль в config.inc.php.

Ошибка

Ответ MySQL:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)


Я так думаю, что пароль.который я ввела не для пользователя root? а для БД. Подскажите как убрать его?

2

Re: Помогите со входом в phpmyadmin

Leisan
Найдите конфигурационный файл phpMyAdmin (config.inc.php), пропишите в директиве $cfg['Servers'][$i]['password'] новый пароль пользователя root.

3

Re: Помогите со входом в phpmyadmin

Hanut сказал:

Leisan
Найдите конфигурационный файл phpMyAdmin (config.inc.php), пропишите в директиве $cfg['Servers'][$i]['password'] новый пароль пользователя root.

дело в том, что я прописала там, но не помогло. Установила MySQL_Administrator, и убрала там заданный пароль. Но все же интересует вопрос как правильно поставить пароль для пользователя root при входе в phpmyadmin, т.к. без заданного пароля опасно.

4

Re: Помогите со входом в phpmyadmin

Leisan
После смены пароля попробуйте почистить куки браузера, возможно поэтому не пускает под новым паролем.

5

Re: Помогите со входом в phpmyadmin

Hanut сказал:

Leisan
После смены пароля попробуйте почистить куки браузера, возможно поэтому не пускает под новым паролем.

не помогло, очистила куки, но изменений никаких.

6

Re: Помогите со входом в phpmyadmin

Если выводится ошибка:
Access denied for user 'root'@'localhost' (using password: NO)
То это означает, что phpMyAdmin пытается соединиться под root без пароля.

Покажите ваш конфигурационный файл phpMyAdmin, config.inc.php

7 (изменено: Leisan, 2010-01-26 13:56:24)

Re: Помогите со входом в phpmyadmin

Hanut сказал:

Если выводится ошибка:
Access denied for user 'root'@'localhost' (using password: NO)
То это означает, что phpMyAdmin пытается соединиться под root без пароля.

Покажите ваш конфигурационный файл phpMyAdmin, config.inc.php

<?php
/* $Id: config.inc.php,v 2.5.2.1 2004/02/15 01:18:52 rabus Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:

/**
* phpMyAdmin Configuration File
*
* All directives are explained in Documentation.html
*/


/**
* Sets the php error reporting - Please do not change this line!
*/
if (!isset($old_error_reporting)) {
    error_reporting(E_ALL);
    @ini_set('display_errors', '1');
}


$cfg['PmaAbsoluteUri'] = '';
/$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;

$cfg['PmaNoRelation_DisableWarning']  = FALSE;

$cfg['blowfish_secret'] = '';

/**
* 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++;
$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]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                    // and "mysql/db" tables).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = '*****';   // MySQL password (only needed
                                                    // with 'config' auth_type)
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                    // this db is displayed in left frame
                                                    // It may also be an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
                                                    // (see scripts/create_tables.sql)
                                                    //   - leave blank for no support
                                                    //     DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
                                                    //   - leave blank for no bookmark support
                                                    //     DEFAULT: 'pma_bookmark'
$cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
                                                    //   - leave blank for no relation-links support
                                                    //     DEFAULT: 'pma_relation'
$cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
                                                    //   - leave blank for no display fields support
                                                    //     DEFAULT: 'pma_table_info'
$cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
                                                    //   - leave blank for no PDF schema support
                                                    //     DEFAULT: 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
                                                    //   - leave blank if you don't want to use this
                                                    //     DEFAULT: 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info']   = '';          // table to store column information
                                                    //   - leave blank for no column comments/mime types
                                                    //     DEFAULT: 'pma_column_info'
$cfg['Servers'][$i]['history']       = '';          // table to store SQL history
                                                    //   - leave blank for no SQL query history
                                                    //     DEFAULT: 'pma_history'
$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
                                                    // are up to date. This prevents compatibility
                                                    // checks and thereby increases performance.
$cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
                                     = '';
$cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
                                     = array();


$i++;
$cfg['Servers'][$i]['host']            = '';
$cfg['Servers'][$i]['port']            = '';
$cfg['Servers'][$i]['socket']          = '';
$cfg['Servers'][$i]['connect_type']    = 'tcp';
$cfg['Servers'][$i]['compress']        = FALSE;
$cfg['Servers'][$i]['controluser']     = '';
$cfg['Servers'][$i]['controlpass']     = '';
$cfg['Servers'][$i]['auth_type']       = 'config';
$cfg['Servers'][$i]['user']            = 'root';
$cfg['Servers'][$i]['password']        = '*****';
$cfg['Servers'][$i]['only_db']         = '';
$cfg['Servers'][$i]['verbose']         = '';
$cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$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]['verbose_check']   = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
                                       = '';
$cfg['Servers'][$i]['AllowDeny']['rules']
                                       = array();

$i++;
$cfg['Servers'][$i]['host']            = '';
$cfg['Servers'][$i]['port']            = '';
$cfg['Servers'][$i]['socket']          = '';
$cfg['Servers'][$i]['connect_type']    = 'tcp';
$cfg['Servers'][$i]['compress']        = FALSE;
$cfg['Servers'][$i]['controluser']     = '';
$cfg['Servers'][$i]['controlpass']     = '';
$cfg['Servers'][$i]['auth_type']       = 'config';
$cfg['Servers'][$i]['user']            = 'root';
$cfg['Servers'][$i]['password']        = '*****';
$cfg['Servers'][$i]['only_db']         = '';
$cfg['Servers'][$i]['verbose']         = '';
$cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$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]['verbose_check']   = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
                                       = '';
$cfg['Servers'][$i]['AllowDeny']['rules']
                                       = array();

// If you have more than one server configured, you can set $cfg['ServerDefault']
// to any one of them to autoconnect to that server when phpMyAdmin is started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfg['ServerDefault'] *MUST* be
// set to that server.
$cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
$cfg['Server']        = '';
unset($cfg['Servers'][0]);


/**
* Other core phpMyAdmin settings
*/
$cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
$cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
$cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
$cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
                                          // locked tables (since MySQL 3.23.30)
$cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
$cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
$cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
$cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
$cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
                                          // or not
$cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
                                          // even if one of the queries failed
$cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
                                          // multiple-statement queries. See the read_dump.php file for hardcoded
                                          // defaults on how many queries a statement may contain!
$cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth

// Left frame setup
$cfg['LeftFrameLight']        = TRUE;   // use a select-based menu and display only the
                                        // current tables in the left frame.
$cfg['LeftFrameTableSeparator']= '__';  // Which string will be used to generate table prefixes
                                        // to split tables into multiple categories
$cfg['LeftFrameTableLevel']   = '1';    // How many sublevels should be displayed when splitting
                                        // up tables by the above Separator
$cfg['ShowTooltip']           = TRUE;   // display table comment as tooltip in left frame
$cfg['ShowTooltipAliasDB']    = FALSE;  // if ShowToolTip is enabled, this defines that table/db comments
$cfg['ShowTooltipAliasTB']    = FALSE;  // are shown (in the left menu and db_details_structure) instead of
                                        // table/db names

$cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
$cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame

// In the main frame, at startup...
$cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
                                        // the pages about database details and table
                                        // properties
$cfg['ShowMysqlInfo']         = FALSE;  // whether to display the "MySQL runtime
$cfg['ShowMysqlVars']         = FALSE;  // information", "MySQL system variables", "PHP
$cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
$cfg['ShowChgPassword']       = FALSE;  // simple users or not
$cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)

// In browse mode...
$cfg['ShowBlob']              = FALSE;  // display blob field contents
$cfg['NavigationBarIconic']   = TRUE;   // do not display text inside navigation bar buttons
$cfg['ShowAll']               = FALSE;  // allows to display all the rows
$cfg['MaxRows']               = 30;     // maximum number of rows to display
$cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
                                        // values are 'ASC', 'DESC' or 'SMART' -ie
                                        // descending order for fields of type
                                        // TIME, DATE, DATETIME & TIMESTAMP,
                                        // ascending order else-)

// In edit mode...
$cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
                                        // valid values are:
                                        //   FALSE  allow editing
                                        //   'blob' allow editing except for BLOB fields
                                        //   'all'  disallow editing
$cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
$cfg['CharEditing']           = 'input';
                                        // Which editor should be used for CHAR/VARCHAR fields:
                                        //  input - allows limiting of input length
                                        //  textarea - allows newlines in fields

// For the export features...
$cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
$cfg['GZipDump']              = TRUE;   // compression for
$cfg['BZipDump']              = TRUE;   // dump files
$cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
                                        // fly without need for much memory.
                                        // If you encounter problems with
                                        // created gzip/bzip2 files disable
                                        // this feature.

// Tabs display settings
$cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
$cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
$cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
                                        // (a value larger than 1 results in some information being hidden)

$cfg['DefaultTabServer']      = 'main.php';
$cfg['DefaultTabDatabase']    = 'db_details_structure.php';
                                   // Possible values:
                                   // 'db_details_structure.php' = tables list
                                   // 'db_details.php' = sql form
                                   // 'db_search.php' = search query
$cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
                               
/**
* Export defaults
*/

$cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml
$cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2

$cfg['Export']['asfile']                    = FALSE;
$cfg['Export']['onserver']                  = FALSE;
$cfg['Export']['onserver_overwrite']        = FALSE;
$cfg['Export']['remember_file_template']    = TRUE;

$cfg['Export']['csv_columns']               = FALSE;
$cfg['Export']['csv_null']                  = 'NULL';
$cfg['Export']['csv_separator']             = ';';
$cfg['Export']['csv_enclosed']              = '"';
$cfg['Export']['csv_escaped']               = '\\';
$cfg['Export']['csv_terminated']            = 'AUTO';
$cfg['Export']['excel_columns']             = FALSE;
$cfg['Export']['excel_null']                = 'NULL';
$cfg['Export']['excel_edition']             = 'win'; // win/mac

$cfg['Export']['latex_structure']           = TRUE;
$cfg['Export']['latex_data']                = TRUE;
$cfg['Export']['latex_columns']             = TRUE;
$cfg['Export']['latex_relation']            = TRUE;
$cfg['Export']['latex_comments']            = TRUE;
$cfg['Export']['latex_mime']                = TRUE;
$cfg['Export']['latex_null']                = '\textit{NULL}';
$cfg['Export']['latex_caption']             = TRUE;
$cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
$cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';

$cfg['Export']['sql_structure']             = TRUE;
$cfg['Export']['sql_data']                  = TRUE;
$cfg['Export']['sql_drop_database']         = FALSE;
$cfg['Export']['sql_drop_table']            = FALSE;
$cfg['Export']['sql_auto_increment']        = TRUE;
$cfg['Export']['sql_backquotes']            = TRUE;
$cfg['Export']['sql_dates']                 = FALSE;
$cfg['Export']['sql_relation']              = FALSE;
$cfg['Export']['sql_columns']               = FALSE;
$cfg['Export']['sql_delayed']               = FALSE;
$cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
$cfg['Export']['sql_extended']              = FALSE;
$cfg['Export']['sql_comments']              = FALSE;
$cfg['Export']['sql_mime']                  = FALSE;

/**
* Link to the official MySQL documentation.
* Be sure to include no trailing slash on the path.
* See http://www.mysql.com/documentation/index.html for more information
* about MySQL manuals and their types.
*/
$cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';

/**
* Type of MySQL documentation:
*   old        - old style used in phpMyAdmin 2.3.0 and sooner
*   searchable - "Searchable, with user comments"
*   chapters   - "HTML, one page per chapter"
*   big        - "HTML, all on one page"
*   none       - do not show documentation links
*/
$cfg['MySQLManualType'] = 'searchable';


/**
* PDF options
*/
$cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
$cfg['PDFDefaultPageSize']  = 'A4';


/**
* Language and charset conversion settings
*/
// Default language to use, if not browser-defined or user-defined
$cfg['DefaultLang'] = 'en-iso-8859-1';

$cfg['DefaultCharset'] = 'iso-8859-1';

$cfg['AllowAnywhereRecoding'] = FALSE;

$cfg['RecodingEngine'] = 'auto';

$cfg['IconvExtraParams'] = '';

$cfg['AvailableCharsets'] = array(
    .....);

/**
* Customization & design
*/
$cfg['LeftWidth']           = 150;          // left frame width
$cfg['LeftBgColor']         = '#D0DCE0';    // background color for the left frame
$cfg['RightBgColor']        = '#F5F5F5';    // background color for the right frame
$cfg['RightBgImage']        = '';           // path to a background image for the right frame
                                            // (leave blank for no background image)
$cfg['LeftPointerColor']    = '#CCFFCC';    // color of the pointer in left frame
                                            // (blank for no pointer)
$cfg['Border']              = 0;            // border width on tables
$cfg['ThBgcolor']           = '#D3DCE3';    // table header row colour
$cfg['BgcolorOne']          = '#CCCCCC';    // table data row colour
$cfg['BgcolorTwo']          = '#DDDDDD';    // table data row colour, alternate
$cfg['BrowsePointerColor']  = '#CCFFCC';    // color of the pointer in browse mode
                                            // (blank for no pointer)
$cfg['BrowseMarkerColor']   = '#FFCC99';    // color of the marker (visually marks row
                                            // by clicking on it) in browse mode
                                            // (blank for no marker)
$cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
                                            // (this value will be emphasized (*2) for sql
                                            // query textareas and (*1.25) for query window)
$cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
$cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
$cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
$cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
$cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
$cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
$cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
$cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
                                            // (or at the top with vertical browse)
$cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
                                            // (or at the bottom with vertical browse)
$cfg['DefaultDisplay']      = 'horizontal'; // default display direction
                                            // (horizontal|vertical|horizontalflipped)
$cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
                                            // creating columns (tbl_properties)
                                            // (horizontal|vertical)

$cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
                                            // NOTE: CSS only works in IE browsers!
$cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
$cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
$cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)

$cfg['QueryFrame']          = TRUE;         // displays a new frame where a link to a querybox is always displayed.
$cfg['QueryFrameJS']        = TRUE;         // whether to use JavaScript functions for opening a new window for SQL commands.
                                            // if set to 'false', the target of the querybox is always the right frame.
$cfg['QueryFrameDebug']     = FALSE;        // display JS debugging link (DEVELOPERS only)
$cfg['QueryWindowWidth']    = 550;          // Width of Query window
$cfg['QueryWindowHeight']   = 310;          // Height of Query window
$cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
                                            // If FALSE, this utilizes JS-routines to display
                                            // query history (lost by window close)
$cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
                                            // (sql|files|history|full)
$cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
                                            // should be kept?
$cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
$cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
                                            // table rows.
$cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
                                            // the PDF page editor. Requires an IE6/Mozilla based browser.

/**
* Default queries.
*  %d will be replaced by database name
*  %t will be replaced by table name
*/
$cfg['DefaultQueryTable']   = 'SELECT * FROM %t WHERE 1';
$cfg['DefaultQueryDatabase']= '';

/**
* SQL Query box settings
* These are the links display in all of the SQL Query boxes
*/
$cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
$cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
$cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
$cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)


/**
* Webserver upload/save/import directories
*/
$cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
                                            // phpMyAdmin. For example './upload'. Leave empty for
                                            // no upload directory support
$cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
                                            // server. For example './save'. Leave empty for no save
                                            // directory support.
$cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
                                            // docSQL files from that directory. For example
                                            // './docSQL'. Leave empty for no docSQL import support.


/**
* Misc. settings
*/
$cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
                                            // does autodetection, which is a bit expensive for
                                            // php < 4.3.0, but it is the only safe vay how to
                                            // determine GD version.
/**
* SQL Parser Settings
*/
.....);


/$cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
$cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
$cfg['SQLValidator']['password'] = '';      // Password for username

/**
* Developers ONLY!
* To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
*/
$cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
$cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
$cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
                                            // Anything below the threshold is not displayed


/**
* MySQL settings
*/
// Column types;
// varchar, tinyint, text and date are listed first, based on estimated popularity
$cfg['ColumnTypes'] = array(
   'VARCHAR',
   'TINYINT',
   'TEXT',
   'DATE',
   'SMALLINT',
   'MEDIUMINT',
   'INT',
   'BIGINT',
   'FLOAT',
   'DOUBLE',
   'DECIMAL',
   'DATETIME',
   'TIMESTAMP',
   'TIME',
   'YEAR',
   'CHAR',
   'TINYBLOB',
   'TINYTEXT',
   'BLOB',
   'MEDIUMBLOB',
   'MEDIUMTEXT',
   'LONGBLOB',
   'LONGTEXT',
   'ENUM',
   'SET'
);

// Atributes
$cfg['AttributeTypes'] = array(
   '',
   'BINARY',
   'UNSIGNED',
   'UNSIGNED ZEROFILL'
);

// Available functions
.....    );

    // Which column types will be mapped to which Group?
    $cfg['RestrictColumnTypes'] = array(
       .....    );

    // Map above defined groups to any function
    $cfg['RestrictFunctions'] = array(
        .....        ),

        'FUNC_DATE'   => array(
          .....        ),

        'FUNC_NUMBER' => array(
          .....        )
    );

    // Default functions for above defined groups
    $cfg['DefaultFunctions'] = array(
       .....    );


} // end if


/**
* Unset magic_quotes_runtime - do not change!
*/
set_magic_quotes_runtime(0);

/**
* File Revision - do not change either!
*/
$cfg['FileRevision'] = '$Revision: 2.5.2.1 $';
?>

Сообщение добавлено Tue Jan 26 13:55:28 2010

Hanut сказал:

Если выводится ошибка:
Access denied for user 'root'@'localhost' (using password: NO)
То это означает, что phpMyAdmin пытается соединиться под root без пароля.

Покажите ваш конфигурационный файл phpMyAdmin, config.inc.php

при назначении пароля в config.inc.php выходит ошибка:

Ответ MySQL:

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

пароль как-будто назначен, но войти не дает

8

Re: Помогите со входом в phpmyadmin

Не могу сказать причину. Судя по ошибке пароль не принимается, как верный.

Попробуйте прописать cookie авторизацию. В этом случае при запуске phpMyAdmin будет выведена форма ввода данных учетной записи.
$cfg['Servers'][$i]['auth_type']     = 'cookie';

9

Re: Помогите со входом в phpmyadmin

Hanut сказал:

Не могу сказать причину. Судя по ошибке пароль не принимается, как верный.

Попробуйте прописать cookie авторизацию. В этом случае при запуске phpMyAdmin будет выведена форма ввода данных учетной записи.
$cfg['Servers'][$i]['auth_type']     = 'cookie';

да, я как раз таки установила cookie. Но при входе в phpmyadmin он входит, ему достаточно только ввода root, без пароля. А как установить чтобы авторизация root была в phpmyadmin с паролем?

10

Re: Помогите со входом в phpmyadmin

Leisan
В phpMyAdmin на странице привилегий следует выбрать пользователя root и на странице редактирования привилегий, в блоке "Изменить пароль", установить пароль.

11 (изменено: Leisan, 2010-01-26 20:27:24)

Re: Помогите со входом в phpmyadmin

Hanut сказал:

Leisan
В phpMyAdmin на странице привилегий следует выбрать пользователя root и на странице редактирования привилегий, в блоке "Изменить пароль", установить пароль.

извините, но я как раз таки с этого и начинала..., поставила на привелегиях пароль для пользователя root, phpmyadmin перестал пускать, причем не запрашивая пароля, сайт временно заблокировался, пока я не усталовила mysql tools-> mysqladministator и не сняла пароль,подключившись к базе. при этом проставляла пароль в конфиг файле, но не помогло. Я уже запуталась как же это нужно сделать.

12

Re: Помогите со входом в phpmyadmin

ещё хотела спросить, в phpmyadmin в разделе привелегий есть "Изменить пароль", есть раздел "Изменить информацию логина\копировать пользователя"-для root при localhost. В котором разделе изменитт пароль для того чтобы при входе  phpmyadmin запрашивалась авторизация? Я пробовала менять в разделе "Изменить пароль"-после чего все перестало запускаться.

13

Re: Помогите со входом в phpmyadmin

Leisan
1) Устанавливаете пароль для root в разделе "Изменить пароль". Закрываете окно с phpMyAdmin. Чистите кеш браузера.
2) В конфигурационном файле phpMyAdmin (config.inc.php) прописываете cookie авторизацию:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
3) Запускаете phpMyAdmin и на странице авторизации вводите данные пользователя root.

14

Re: Помогите со входом в phpmyadmin

Hanut сказал:

Leisan
1) Устанавливаете пароль для root в разделе "Изменить пароль". Закрываете окно с phpMyAdmin. Чистите кеш браузера.
2) В конфигурационном файле phpMyAdmin (config.inc.php) прописываете cookie авторизацию:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
3) Запускаете phpMyAdmin и на странице авторизации вводите данные пользователя root.

настроила так, теперь при авторизации выходит надпись:
"#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client"
и дальше не впускает

15

Re: Помогите со входом в phpmyadmin

Leisan
Выходит надо обновить PHP. Что-то у вас с Денвером не в порядке, попробуйте его переустановить.

16

Re: Помогите со входом в phpmyadmin

Добрый день. Возникла такая же проблема, что и у Leisan. Вот только я совсем чайник. Пробовал следовать вашим советам: правил config.inc.php, вставляя пароль на рута, а он мне выдаёт "#2000 - mysqlnd cannot connect to MySQL 4.1+ using old authentication". Денвер скачан вчера с официального сайта, последний, который был в наличии. Как теперь работать? Помогите, пожалуйста sad

17

Re: Помогите со входом в phpmyadmin

DNK_Inc
При установке пароля есть радиокнопки выставления метода хеширования пароля: "MySQL 4.1+" и "MySQL 4.0 совместимо". Выберите метод хеширования в соответствии с версией сервера MySQL.

18

Re: Помогите со входом в phpmyadmin

Версия моего сервера MySQL: 5.0.5, поэтому я не знаю, какой из методов хеширования мне подошёл бы...

19

Re: Помогите со входом в phpmyadmin

DNK_Inc сказал:

Версия моего сервера MySQL: 5.0.5, поэтому я не знаю, какой из методов хеширования мне подошёл бы...

MySQL 4.1+

20

Re: Помогите со входом в phpmyadmin

Добрый день! У меня такая же проблема в точности, как у DNK_Inc! Я уже догадался, что я выбрал не тот метод хеширования! Подскажите пожалуйста, как исправить это! Я теперь в phpMyAdmin зайти из-за этого вообще не могу! И ещё если не сложно, где посмотреть версию моего MySQL?

21

Re: Помогите со входом в phpmyadmin

Neck
Странно, что вы не можете зайти в phpMyAdmin. Смена метода хеширования влияет только на вид в котором пароль хранится в БД, но его работоспособность должна быть прежней.

Если вы что-то делали с пользователем root, то попробуйте обнулить его пароль с помощью данной инструкции.
http://forum.php-myadmin.ru/viewtopic.p … 8603#p8603

22

Re: Помогите со входом в phpmyadmin

вообщем вот что пишет при переходе на http://localhost/Tools/phpMyAdmin/
Welcome to phpMyAdmin

Error
MySQL said: 

#2000 - mysqlnd cannot connect to MySQL 4.1+ using old authentication

Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
и ещё я кое-что заметил! Я попробовал поставить в папку config.inc.php любой пароль от root, мне всё равно выдается эта ошибка, и я не могу зайти на phpMyAdmin! А насчет инструкции, то я там кое-чего не понял, но об этом я в той теме написал!

23

Re: Помогите со входом в phpmyadmin

Neck
Вроде ошибка говорит только о controluser; пользователь который используется для расширенных таблиц. Попробуйте закомментировать расширенные таблицы в конфигурационном файле phpMyAdmin (config.inc.php).

Закомментируйте эти строки:

$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pass';

24

Re: Помогите со входом в phpmyadmin

Нет, к сожалению это не помогло! До того, как я туда полез, в первой строчке было написано root, а в другой ничего не было! Я ставил и так как в примере, и вместо pass пароль писал! Вообщем делал по-разному, но ошибка осталась та же!

25

Re: Помогите со входом в phpmyadmin

\

Neck сказал:

#2000 - mysqlnd cannot connect to MySQL 4.1+ using old authentication

и ещё чуть не забыл! У меня вот это и есть ошибка, а то что было написано ниже этого, это идут ещё три отдельных сообщения! Вообщем сама ошибка это вот это! А то, что написано ниже было, это я не знаю относится к ошибке как-то или нет!