0

I downloaded MySql Connector/NET, and set it as a reference in my project.
I added the using MySql.Data.MySqlClient; to my code.

Now I tried initializing a connection like this:

MySqlConnection test = new MySqlConnection(Utilities.GenerateMySqlConnectionString("localhost", "test", "root", ""));

However I cannot use this object later. Looks like the IDE doesn't recognize it. Here's a screenshot to explain better. IDE Screenshot http://n.muboo.net/NoMySQLConnection.png

1 Answer 1

3

Where are you at this point? If you're at the class level, it's expecting you to declare a method, property, field, event, etc, and won't show you any fields in intellisense.

Sign up to request clarification or add additional context in comments.

1 Comment

Oh my god, dummy me. Thank you, I hadn't noticed at all! I feel like I'm wasting StackOverflow's bandwidth.

Your Answer

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.