//루트 사용자를 만들고 액세스 권한 %는 모두를 나타내며 사용자 암호도 루트입니다. 이 사용자 정의
create user 'root'@'%' identified with mysql_native_password by '123456';
//그런 다음 관리자 권한인 권한을 부여합니다.
grant all privileges on *.* to 'root'@'%' with grant option;
//적용할 권한 작업을 부여하는 권한 범위를 다시 로드합니다.
flush privileges;
//MySQL8에서 암호는 모두 시간 제한이 있으며 영구적으로 조정합니다.
alter user 'root'@'%' identified by '123456' password expire never;