Ask Your Question
3

Why is it not permissible to use root for MySQL session storage?

asked 2023-05-05 22:50:02 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-05 22:56:02 +0000

lalupa gravatar image

Using root for MySQL session storage is not permissible because it is a security risk. The root user has access to all databases and can perform any action on them. Giving root access to a PHP application by allowing it to store sessions in that user's database allows for potential exploits to occur, as a compromised session could give access to the entire system. It is recommended to create a separate, restricted user with limited privileges for the application to use.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-05 22:50:02 +0000

Seen: 16 times

Last updated: May 05 '23