source

올바른 구문은 MariaDB 서버 버전에 해당하는 매뉴얼을 참조하십시오.

bestscript 2022. 11. 2. 22:43

올바른 구문은 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