mysql root permission to update information_schema error

前端 未结 2 1096
甜味超标
甜味超标 2021-01-19 04:57

when i try to update one table(GLOBAL_VARIABLES) from information_schema db,

i get an error :

Access denied for user \'root\'@\'localhost\' to databa         


        
2条回答
  •  花落未央
    2021-01-19 05:26

    The INFORMATION_SCHEMA database is a "pseudo database" containing server-generated views and as far as I know, contains only read-only data. If you need to alter a variable, you need to go the standard way, see Per's answer. From the mySQL manual:

    INFORMATION_SCHEMA is the information database, the place that stores information about all the other databases that the MySQL server maintains. Inside INFORMATION_SCHEMA there are several read-only tables. They are actually views, not base tables, so there are no files associated with them.

    More detailed info on GLOBAL_VARIABLES here.

提交回复
热议问题