2

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?

asked Jul 15, 2010 at 6:19

1 Answer 1

3

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

answered Jul 15, 2010 at 6:22
4
  • @asaph when i give that 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. Commented Jul 15, 2010 at 6:24
  • It sounds like your perms are a bit messed up. Commented Jul 15, 2010 at 6:25
  • @Pandiya Chendur: The error message is telling you exactly what to do next. You have 2 choices: 1) Run a statement like GRANT SELECT ON mysql.proc TO 'lmslive'@'10.1.1.15' IDENTIFIED BY 'lmslive'. or 2) Set the use procedure bodies=false option. Commented Jul 15, 2010 at 6:27
  • @Pandiya Chendur: Glad to hear that. Please mark this answer as correct :) Commented Jul 15, 2010 at 6:35

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.