Minimum access levels to run MySql stored procedure

后端 未结 2 1429
长情又很酷
长情又很酷 2021-01-14 13:45

I am trying to setup my .NET 4.7.1 program that is connecting to a MySQL database 8.0 to use the minimum privileges to run. The .NET program is using MySql.Data to make conn

2条回答
  •  攒了一身酷
    2021-01-14 14:23

    I found an answer with which I am quite pleased. It is changing the connection string by adding CheckParameters=false:

    using (MySqlConnection conn = new MySqlConnection("Server=localhost;Database=Spike;uid=Spike;pwd=sample;CheckParameters=false"))
    

    This disables parameter checking, and thereby information_schema queries.

提交回复
热议问题