[xampp] mysql mysql using password: no error

[xampp] mysql mysql using password: no error

MySQL 메세지 : 연결할 수 없습니다 : 잛못된 설정

mysqli:r:real_connect(): (HY000/1045): Access denied for user 'root@localhost' (using password: NO)

발생원인 : Mysql 에서 root 계정 패스워드 입력

해결방법 :

1. C:\xampp\phpMyAdmin으로 이동

2. config.inc.php 파일 열기

3. 다음 정보를 찾아 암호를 변경

/* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = '변경한계정 id'; $cfg['Servers'][$i]['password'] = '변경한계정 pw'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['AllowNoPassword'] = true; $cfg['Lang'] = '';

변경후 접속 확인

from http://91pang.tistory.com/172 by ccl(A) rewrite - 2021-11-26 17:01:04