문제

I have a question to all you MySQL experts out there: Is it possible to see when a user was created in MySQL? Let's say I create a user called 'monty':

CREATE USER 'monty'@'localhost' [...]

how can I see when I created this user? Is there also a way to check how the details of this user got modified?

Thanks a lot.

도움이 되었습니까?

해결책

No, there is no way to do that. The only thing you can do is analyzing binary logs of MySQL Server; but internally it does not store neither user creation date nor modification dates/details.

If you're creating a new software or adding a feature to the existing one you might consider creating/modifying users through your stored procedures only, while in the same stored procedures you can log theis parameters, current date and everything else you want to.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top