MySql.Data.MySqlClient.MySqlException: execute command denied to user
    文章作者:恒爱网络 阅读次数:6826 发布时间:2012-11-19

    某客户ASP.NET的程序连接MYSQL数据库时提示错误信息如下: 

    Server Error in '/' Application. 

    execute command denied to user 'textiledb'@'localhost' for routine 'sqltextiledb.Search_SplitPage_TemplateTable'

    Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details:MySql.Data.MySqlClient.MySqlException: execute command denied to user 'textiledb'@'localhost' for routine 'sqltextiledb.Search_SplitPage_TemplateTable'

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    解决方案:数据库用户 textiledb 读取数据库时缺少execute 权限导致的 。给此用户赋予此权限即可。