What is wrong with this mysql connection string?

寵の児 提交于 2019-12-11 02:32:39

问题


I am using this connection string,

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

and this database lmslive is in a system next to mine connected via proxy.... And i executed this query on that system,

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

I get the error,

Access denied for user 'root'@'XAVY-PANDIYA' (using password: YES).. Any suggestion? what am i missing?


回答1:


Replace user id=root with user id=lmslive in your connectionString.



来源:https://stackoverflow.com/questions/3252949/what-is-wrong-with-this-mysql-connection-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!