How to grant all privileges to a user in MySql

前端 未结 2 665
庸人自扰
庸人自扰 2021-01-25 17:31

I am connected as a root user in MySql. Root user has GRANT and

grant all privileges on *.* to \'root\'@\'localhost\' with grant option;

went

2条回答
  •  半阙折子戏
    2021-01-25 18:20

    test this code.

    GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
    

提交回复
热议问题