otrzymuję dwa błędy, gdy próbuję iść do mojego phpmyadmin localhostxampp localhost phpmyadmin Access denied for user 'root' @ 'localhost' (using password: YES)
Access denied for user 'root'@'localhost' (using password: YES)
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.
nie wiem co robie źle ... tutaj jest mój kod config ...
$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';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'password';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
//$cfg['Servers'][$i]['controluser'] = 'pmauser';
//$cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* 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'] = '';
?>
zauważam dużo kodu jest wypowiedziało się, mam un-skomentował to?
czy jesteś pewien, że potrzebujesz hasła, aby połączyć się z bazą danych? jeśli nie potrzebujesz hasła, wykonaj to $ cfg ['Servers'] [$ i] ['password'] = ''; –
ten błąd pojawia się podczas łączenia z bazą danych. Tak więc spróbuj odtworzyć szczegóły ciągu połączenia w celu debugowania (aby dowiedzieć się, jakie wartości przyjmuje połączenie w celu uzyskania poprawnych wartości lub nie). – deepi
Poszedłeś na domyślną stronę xampp i przeszedłeś przez ekrany bezpieczeństwa? – shapeshifter