2017-10-13 5 views
2

중복으로 표시하지 마십시오. 내가 뭘해야할지 모르겠다.phpMyAdmin 오류 : mysqli_real_connect() : (HY000/1045) : 사용자 'pma'@ 'localhost'에 대한 액세스가 거부되었습니다 (암호 사용 : NO)

내가 XAMPP를 통해 MySQL의 연결을 통해 다음과 같은 오류가 점점 계속하고 어떻게해야할지 모르겠어요 다음 config.inc.php를의 코드입니다

enter image description here

<?php 
/* 
* This is needed for cookie based authentication to encrypt password in 
* cookie 
*/ 
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE 
SECURE COOKIE AUTH! */ 

/* 
* Servers configuration 
*/ 
$i = 0; 

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

/* Authentication type and info */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 
$cfg['Lang'] = ''; 

/* Bind to the localhost ipv4 address and tcp */ 
$cfg['Servers'][$i]['host'] = '127.0.0.1'; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 

/* User for advanced features */ 
$cfg['Servers'][$i]['controluser'] = 'pma'; 
$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'; 
$cfg['Servers'][$i]['tracking'] = 'pma__tracking'; 
$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; 
$cfg['Servers'][$i]['recent'] = 'pma__recent'; 
$cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; 
$cfg['Servers'][$i]['users'] = 'pma__users'; 
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; 
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; 
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; 
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; 
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; 
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; 
$cfg['Servers'][$i]['favorite'] = 'pma__favorite'; 

/* 
* End of servers configuration 
*/ 

?> 

이미 MySql의 암호를 명령 줄에서 두 번 다시 설정하고 위의 코드와 php.ini 파일에 변경 사항을 추가했지만 오류가 발생할 때마다 변경했습니다. 어떤 도움이 필요합니까?

+0

오류는 사진에 클릭하여 액세스 할 수있는 파란색 "여기에 이미지 설명을 입력합니다." –

+0

당신의 MySQL 암호는 무엇을 설정합니까? – tharif

답변

0

호스트 항목 127.0.0.1을 localhost 또는 서버의 IP 주소로 변경하는 것을 고려하십시오.

$하여 cfg [ '서버'] [$ 나는] [ '호스트']