올바른 구문은 MariaDB 서버 버전에 해당하는 매뉴얼을 참조하십시오.
10.1.13-MariaDB를 가진 PhPMyAdmin의 루트 비밀번호를 변경하려면 SQL 탭에 다음을 입력하고Go버튼:
ALTER USER
'root'@'localhost' IDENTIFIED BY 'mypass'
다음의 에러가 표시됩니다.
Error
SQL query:
ALTER USER
'root'@'localhost' IDENTIFIED BY 'mypass'
MySQL said: Documentation
1064 - SQL 구문에서 오류가 발생했습니다. MariaDB 서버 버전에 해당하는 설명서에서 1행의 'USER 'root'@'localhost' IDENTED BY 'mypass' 근처에서 사용할 올바른 구문을 확인하십시오.
MySQL 웹사이트에서 다음 튜토리얼을 팔로우했습니다.
암호 할당 문이 포함된 텍스트 파일을 한 줄에 만듭니다.암호를 사용할 암호로 바꿉니다.
MySQL 5.7.6 이후:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass'MySQL 5.7.5 이전 버전:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
다음은 스크린샷입니다.
이것은 마리아에게 효과가 있었다.DB:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass')
비밀번호를 변경하면 PhPMyAdmin에 다음과 같이 표시됩니다.mysql said: Cannot connect: invalid settings.
를 열어야 합니다.config.inc.php파일을 작성하고 다음 행을 변경합니다.
/* 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'] = '';
수신인:
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'newpass';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Lang'] = '';
이 파일은 디폴트로C:\xampp\phpMyAdmin디렉토리로 이동합니다.
언급URL : https://stackoverflow.com/questions/38231170/check-the-manual-that-corresponds-to-your-mariadb-server-version-for-the-right-s
'source' 카테고리의 다른 글
| dict 리터럴을 사용하는 것과 dict 컨스트럭터를 사용하는 것에는 차이가 있습니까? (0) | 2022.11.02 |
|---|---|
| Regex: InCombining Diacricic Marks란? (0) | 2022.11.02 |
| SQL DELETE(이너 조인 포함) (0) | 2022.11.01 |
| Maria에 클러스터되지 않은 다른 인덱스가 추가된 경우 기본 키가 클러스터된 인덱스가 아닌 이유DB (0) | 2022.11.01 |
| Java에서 equals 및 hashCode를 덮어쓸 때 고려해야 할 문제는 무엇입니까? (0) | 2022.11.01 |
