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

12
[Удален]
2281

Обновил майадмин и вылезла эта херь, в файле config.inc.php

прописываю

<?php

$i = 0;
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
?>

Ошибка не пропадает

DV
На сайте с 01.05.2010
Offline
644
#1

<?php

/*
* Generated configuration file
* Generated by: phpMyAdmin 3.3.7 setup script by Piotr Przybylski <piotrprz@gmail.com>
* Date: Mon, 20 Sep 2010 13:52:25 +0400
*/

/* Servers configuration */
$i = 0;

/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '1';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* End of servers configuration */

$cfg['blowfish_secret'] = 'tt7e45d7g79tf7dfh876gf';
$cfg['DefaultLang'] = 'ru-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
VDS хостинг ( http://clck.ru/0u97l ) Нет нерешаемых задач ( https://searchengines.guru/ru/forum/806725 ) | Перенос сайтов на Drupal 7 с любых CMS. ( https://searchengines.guru/ru/forum/531842/page6#comment_10504844 )
[Удален]
#2

Попробовал Ваш вариант - ошибка не пропала, а по ssh через

mysql -u root -p

пускает без проблем. Через панель ISP пробовал удалять майадмин и ставить заново - ошибка не пропадает

DV
На сайте с 01.05.2010
Offline
644
#3

Задайте доступ с локалхоста для базы — есть?

Rebz
На сайте с 27.01.2009
Offline
58
#4
$cfg['Servers'][$i]['password'] = '';

Так попробуйте

rebz.net - Профессиональный аудит безопасности сайтов (http://rebz.net) (ОТЗЫВЫ (http://forum.antichat.net/threadnav153966-1-10.html)) Мы надежно защитим Ваш бизнес в интернете.
DV
На сайте с 01.05.2010
Offline
644
#5

Access denied for user 'root'@'localhost' (using password: NO)
Это значит, что с пустым паролем.
[Удален]
#6
Rebz:
Так попробуйте

Ошибка не пропала

Sinaps добавил 20.05.2011 в 16:52

DenisVS:
Задайте доступ с локалхоста для базы — есть?

Можно подробнее как это сделать?

Sinaps добавил 20.05.2011 в 16:52

DenisVS:
Access denied for user 'root'@'localhost' (using password: NO)
Это значит, что с пустым паролем.

Я уже 30 минут гуглю, так что уже знаю что это :)

DV
На сайте с 01.05.2010
Offline
644
#7

Смотря какая система. Для FreeBSD:

/usr/local/bin/mysqladmin -u root -h localhost password 'new-password'
В Линуксах путь другой.

Или

#mysql -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'пароль';

под Win

mysql.exe mysql -uroot -pпароль
[Удален]
#8

4758:~# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11373
Server version: 5.0.51a-24+lenny5 (Debian)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123';
Query OK, 0 rows affected (0.10 sec)

mysql>

mysql> Aborted

Ошибка не пропала

V
На сайте с 01.10.2006
Offline
136
#9

Пока писал, понял шо уже не надо :) Потер

[Удален]
#10

Ось Дебиан, конфиг показывал весь

config-db.php такого файла у меня нет

12

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий