Web & DataBase

[xampp] mysql mysql using password: no error

박석재 2021. 11. 26.
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

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'] = '';

 

변경후 접속 확인

댓글