ASP.NET - Problem connecting to database

Status
Not open for further replies.

machado

New Member
Messages
19
Reaction score
0
Points
0
The type or namespace name `MySql' could not be found. Are you missing a using directive or an assembly reference?

I'm using MySql.Data.MySqlClient; so I can do a connection like this:

Code:
MySqlConnection Conn = new MySqlConnection("server=server;Database=machado_db;userid=machado;password=pass;");

I work with VS 2008 and MySQL Connector but only found and uploaded mysql.data.dll.

There's anything else I have to do ?
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
make sure you import the MySQL namespace.
 
Status
Not open for further replies.
Top