Wamp의 Phpmyadmin에서 사용자에게 비밀번호를 넣으십시오.
-
20-08-2019 - |
문제
WAMP 서버의 phpmyadmin에서 루트 사용자의 비밀번호를 어떻게 변경합니까? phpmyadmin에서 잠겨 있기 때문에 비밀번호를 잘못 변경 한 후.
해결책
phpmyadmin 폴더의 config.inc.php 파일입니다. 데이터베이스에 설정 한 내용으로 사용자 이름과 비밀번호를 변경하십시오.
<?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'] = 'enter_username_here';
$cfg['Servers'][$i]['password'] = 'enter_password_here';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
/* 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';
/*
* End of servers configuration
*/
?>
다른 팁
phpmyadmin 폴더에는 config.inc.php라는 파일이 있습니다.
파일 경로는 c : wamp apps phpmyadmin4.0.4입니다.
auth_type '쿠키'를 'config'또는 'http'로 편집하십시오.
$ cfg [ '서버'] [$ i] [ 'auth_type'] = '쿠키';
$cfg['Servers'][$i]['auth_type'] = 'config';
또는
$cfg['Servers'][$i]['auth_type'] = 'http';
phpmyadmin 사이트로 이동하면 사용자 이름과 비밀번호를 요청 받게됩니다. 또한 웹 서버가 외부 연결에 노출되면 Phpmyadmin 애플리케이션에 액세스 할 수 없습니다.
돌아 오십시오 기본 이 단계에 따라 설정 :
대신에
$cfg['Servers'][$i]['AllowNoPassword'] = false;
변경 :
$cfg['Servers'][$i]['AllowNoPassword'] = true;
당신의 config.inc.php
파일.
비밀번호를 지정하지 않고 이전과 같이 사용자 이름을 넣습니다. root
.
예를 들어
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
이것은 내가 편집 한 후 나를 위해 효과가있었습니다 config.inc.php
파일.
몇 가지 문제가 있고 다른 구성 변수를 사용하여 고정했습니다.
$cfg['Servers'][$i]['AllowNoPassword'] = true;
instead
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
누군가가 도움이 될 수 있습니다
phpmyadmin의 설치를 검색하여 documentation.txt라는 파일을 검색하십시오. Config.inc.php라는 파일을 만드는 방법과 사용자 이름과 암호를 구성하는 방법에 대해 설명합니다.
phpmyadmin의 사용자 이름과 암호는 WAMP에 다른 곳 (사용자 정의 정의 된 구성 파일)에 저장된 것 같습니다.
따라서 현재 사용되는 기본 기본 'Config'파일 기반 비밀번호를 변경하려면 찾아 볼 수 있습니다. "<host>/phpmyadmin/user_password.php
"브라우저 사용. MySQL 자격 증명을 입력하라는 메시지가 표시되면 표시된 양식을 사용하여 이전에 로그인 한 사용자의 저장된 비밀번호를 변경할 수 있습니다.
명령 줄에서 암호 사용을 찾지 못한 경우 mysql -u root -p는 비밀번호를 묻습니다. 설치시 시작시 입력의 기본 비밀번호가됩니다. phpmyadmin의 로그인에 대한 비밀번호가 될 것입니다.