grant file on just one database

前端 未结 2 456
無奈伤痛
無奈伤痛 2020-12-10 10:03

I want to allow LOAD DATA command for the john mysql user. So I logged into mysql terminal as root and issued the following statement:

grant file on johndat         


        
2条回答
  •  感情败类
    2020-12-10 11:04

    with the FILE privilege, you give a user access to the filesystem that the mysql server can access. Because of this, it's useless to limit it to a specific database, as the user will be able to access all databases on filesystem level. This is because it can only be set on .

提交回复
热议问题