【问题标题】:What is wrong with this mysql connection string?这个mysql连接字符串有什么问题?
【发布时间】:2010-07-15 06:19:10
【问题描述】:

我正在使用这个连接字符串,

<add name="connectionString" connectionString="server=10.1.1.16;user id=root;
password=lmslive; database=lmslive; pooling=false;" 
      providerName="MySql.Data.MySqlClient"/>

这个数据库lmslive在我旁边的一个系统中,通过代理连接....我在那个系统上执行了这个查询,

  GRANT ALL PRIVILEGES ON lmslive.* TO 'lmslive'@'10.1.1.15'
    IDENTIFIED BY 'lmslive' WITH GRANT OPTION;

我得到了错误,

Access denied for user 'root'@'XAVY-PANDIYA' (using password: YES).. 有什么建议吗?我错过了什么?

【问题讨论】:

    标签: asp.net mysql connection-string


    【解决方案1】:

    在您的connectionString 中将user id=root 替换为user id=lmslive

    【讨论】:

    • @asaph 当我给 Unable to retrieve stored procedure metadata. Either grant SELECTprivilege to mysql.proc for this user or use "use procedure bodies=false" with your connection string.
    • 听起来你的烫发有点乱。
    • @Pandiya Chendur:错误消息告诉您下一步该做什么。您有 2 个选择:1) 运行类似 GRANT SELECT ON mysql.proc TO 'lmslive'@'10.1.1.15' IDENTIFIED BY 'lmslive' 的语句。或 2) 设置 use procedure bodies=false 选项。
    • @Pandiya Chendur:很高兴听到这个消息。请将此答案标记为正确:)
    猜你喜欢
    • 2010-12-31
    • 1970-01-01
    • 1970-01-01
    • 2015-12-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多