본문 바로가기
MySql

MySQL phpMyAdmin이 MySQL 서버에 연결할 수 없습니다.

by 베이스 공부 2020. 12. 5.
반응형

이 오류를 수정하는 데 정말 도움이 필요합니다. 다음 월요일이 제 마지막 해 프로젝트 프레젠테이션이기 때문입니다. 이 문제를 해결하는 방법을 모르겠습니다.


그리고 몇 분 전에 wamp 서버를 제거했습니다. 다시 설치 한 후 wamp 서버를 정상적으로 사용할 수 있지만 여전히 동일한 오류가 발생합니다.

다음은 오류입니다.

MySQL의 말 : 문서

phpMyAdmin이 MySQL 서버에 연결을 시도했지만 서버가 연결을 거부했습니다. 구성에서 호스트, 사용자 이름 및 암호를 확인하고 MySQL 서버 관리자가 제공 한 정보와 일치하는지 확인해야합니다.

 

해결 방법

 

문제 해결을 시청할 수 있습니다.


p/s: this is Vietnamese video :)
config.inc.php 에서 다음 코드를 편집합니다.

* First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
//uncomment this
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//comment this
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

그런 다음 wampserver를 종료하고 wampserver를 다시 열고 PHPMyadmin을 열면 로그인 양식이 표시됩니다.

 

참조 페이지 https://stackoverflow.com/questions/23883163

 

 

반응형

댓글