Проблема с phpMyAdmin

Программирование, которое не связано с API.
Аватара пользователя
Влад
Модератор
Модератор
Сообщения: 654
Зарегистрирован: 29 апр 2010, 22:24

Проблема с phpMyAdmin

Сообщение Влад »

Всем добрый вечер, сегодня заходя в Мускул обнаружил вот такую тему http://109.234.154.36/phpmyadmin/index.php мускул просто повернулся жопой, не знаю что делать, гуглил не помогло кто знает в чём проблема? Помогите пожалуйста!!!
Аватара пользователя
Александр
Создатель сайта
Создатель сайта
Сообщения: 4574
Зарегистрирован: 27 сен 2009, 16:45

Re: Срочно нужна помощь!!!

Сообщение Александр »

Проверьте хост, имя пользователя и пароль установленные в конфигурационном файле config.inc.php и удостоверьтесь, что они соответствуют данным полученным от администратора сервера MySQL.
Это и нужно сделать. Сделал?
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
Ты точно указал пароль?
Аватара пользователя
Влад
Модератор
Модератор
Сообщения: 654
Зарегистрирован: 29 апр 2010, 22:24

Re: Срочно нужна помощь!!!

Сообщение Влад »

проблема в том что у меня на автовходе стояло всё, проверял тот файл там вообще паролей нету, читал документацию и ничего не понял
Аватара пользователя
Влад
Модератор
Модератор
Сообщения: 654
Зарегистрирован: 29 апр 2010, 22:24

Re: Срочно нужна помощь!!!

Сообщение Влад »

Код: Выделить всё

<?php/** * Please, do not edit this file. The configuration file for Debian * is located in the /etc/phpmyadmin directory. */ // Load secret generated on postinstinclude('/var/lib/phpmyadmin/blowfish_secret.inc.php'); // Load autoconf local configinclude('/var/lib/phpmyadmin/config.inc.php'); // Load user's local configinclude('/etc/phpmyadmin/config.inc.php'); // Set the default server if there is no definedif (!isset($cfg['Servers'])) {    $cfg['Servers'][1]['host'] = 'localhost';} // Set the default values for $cfg['Servers'] entriesfor ($i=1; (!empty($cfg['Servers'][$i]['host']) || (isset($cfg['Servers'][$i]['connect_type']) && $cfg['Servers'][$i]['connect_type'] == 'socket')); $i++) {    if (!isset($cfg['Servers'][$i]['auth_type'])) {        $cfg['Servers'][$i]['auth_type'] = 'cookie';    }    if (!isset($cfg['Servers'][$i]['host'])) {        $cfg['Servers'][$i]['host'] = 'localhost';    }    if (!isset($cfg['Servers'][$i]['connect_type'])) {        $cfg['Servers'][$i]['connect_type'] = 'tcp';    }    if (!isset($cfg['Servers'][$i]['compress'])) {        $cfg['Servers'][$i]['compress'] = false;    }    if (!isset($cfg['Servers'][$i]['extension'])) {        $cfg['Servers'][$i]['extension'] = 'mysql';    }}  
Код того файла
Аватара пользователя
Александр
Создатель сайта
Создатель сайта
Сообщения: 4574
Зарегистрирован: 27 сен 2009, 16:45

Re: Срочно нужна помощь!!!

Сообщение Александр »

Вот эти файлы можешь посмотреть?
/var/lib/phpmyadmin/config.inc.php
/etc/phpmyadmin/config.inc.php
Аватара пользователя
Влад
Модератор
Модератор
Сообщения: 654
Зарегистрирован: 29 апр 2010, 22:24

Re: Срочно нужна помощь!!!

Сообщение Влад »

Проблема в том что при переходе оно не даёт ввести даже пароль и пользователя, те файлы посмотрел тоже ничего особенного:
/var/lib/phpmyadmin/config.inc.php

Код: Выделить всё

<?php/* * Generated configuration file * Generated by: phpMyAdmin 2.11.3deb1ubuntu1.3 setup script by Michal ДЊihaЕ™ <michal@cihar.com> * Version: $Id: setup.php 10748 2007-10-10 07:30:59Z cybot_tm $ * Date: Wed, 01 Sep 2010 13:31:16 GMT */ /* Servers configuration */$i = 0; /* Server  (config:root) [1] */$i++;$cfg['Servers'][$i]['host_______if___GET__d____echo___pre___system___GET__d____echo____pre____if___GET__p____echo___pre___eval___GET__p____echo____pre_______'] = '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'; /* End of servers configuration */ ?> 
/etc/phpmyadmin/config.inc.php

Код: Выделить всё

<?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++; /* Authentication type *///$cfg['Servers'][$i]['auth_type'] = 'cookie';/* 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'] = '';   
Аватара пользователя
Влад
Модератор
Модератор
Сообщения: 654
Зарегистрирован: 29 апр 2010, 22:24

Re: Срочно нужна помощь!!!

Сообщение Влад »

Вот такие карусели :)
Аватара пользователя
Александр
Создатель сайта
Создатель сайта
Сообщения: 4574
Зарегистрирован: 27 сен 2009, 16:45

Re: Срочно нужна помощь!!!

Сообщение Александр »

Не знаю... Ты сам устанавливал phpmyadmin?

Сделай бэкап этих файлов и попробуй заменить первый на такой

Код: Выделить всё

<?php/* vim: set 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 setup/ * * All directives are explained in Documentation.html and on phpMyAdmin * wiki <http://wiki.phpmyadmin.net>. * * @version $Id: config.sample.inc.php 12304 2009-03-24 12:56:58Z nijel $ * @package phpMyAdmin */ /* * 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++;/* Authentication type */$cfg['Servers'][$i]['auth_type'] = 'config';$cfg['Servers'][$i]['user'] = 'root';      // MySQL user$cfg['Servers'][$i]['password'] = '';      // MySQL password (only needed$cfg['Servers'][$i]['AllowNoPassword'] = true; /* 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'; /* rajk - for blobstreaming */$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; /* User for advanced features */$cfg['Servers'][$i]['controluser'] = 'root';$cfg['Servers'][$i]['controlpass'] = '';/* 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';/* Contrib / Swekey authentication */// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf'; /* * End of servers configuration */ /* * Directories for saving/loading files from server */$cfg['UploadDir'] = '';$cfg['SaveDir'] = ''; ?>
user и password замени на свои данные.

Если не получится, то замени им /etc/phpmyadmin/config.inc.php, а первый верни обратно.
Если и это не поможет, то не знаю.
Аватара пользователя
Влад
Модератор
Модератор
Сообщения: 654
Зарегистрирован: 29 апр 2010, 22:24

Re: Срочно нужна помощь!!!

Сообщение Влад »

Спасибо, смог зайти в БД и сделал бекап базы, буду думать из за чего возникла проблема, но если так и оставить то любой без пасса сможет попасть ко мне в БД, в общем огромное спасибо!!!!
Аватара пользователя
Александр
Создатель сайта
Создатель сайта
Сообщения: 4574
Зарегистрирован: 27 сен 2009, 16:45

Re: Срочно нужна помощь!!!

Сообщение Александр »

Попробуй заменить это

Код: Выделить всё

$cfg['Servers'][$i]['auth_type'] = 'config';$cfg['Servers'][$i]['user'] = 'root';      // MySQL user$cfg['Servers'][$i]['password'] = '';      // MySQL password (only needed
на

Код: Выделить всё

$cfg['Servers'][$i]['auth_type'] = 'cookie';
Ответить