2014-01-23 1 views
0

루트 암호를 잊었으므로 재설정 할 몇 가지 방법을 따라갔습니다.MySQL은 다음과 함께 작동합니다 : skip-grant-tables

이제 PHPmyAdmin에서 새 데이터베이스를 만들 수 없으며 "권한 없음"메시지가 표시됩니다.

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; 

그러나 나는 오류 얻을 :

#1290 - The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 

그래서 내가로부터 "생략 - 부여 - 테이블을"제거를

그래서 나는 다시 사용 ROOT에 대한 모든 권한을 추가하려고 my.ini, 그러면 MySQL 기반 사이트가 작동을 멈 춥니 다.

나는 그것을 공식적으로 퍼지 했습니까?

+3

당신이'FLUSH PRIVILEGES'를 실행하려고하거나 MySQL 서버를 다시 시작하게한다. – Cyclonecode

+0

@KristerAndersson FLUSH PRIVILEGES을 (를) 실행하지 않았지만 다시 시작했습니다. – MRC

+0

@KristerAndersson 플러시가 작동했습니다. 고마워, 대답을 추가하고 그것을 선택하겠습니다. – MRC

답변

2

당신이 권한을 플러시해야합니다 :

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; 
FLUSH PRIVILEGES; 

documentation에서 :

Reloads the privileges from the grant tables in the mysql database.

The server caches information in memory as a result of GRANT and CREATE USER statements. This memory is not released by the corresponding REVOKE and DROP USER statements, so for a server that executes many instances of the statements that cause caching, there will be an increase in memory use. This cached memory can be freed with FLUSH PRIVILEGES.

관련 문제