9
I’m creating a Form
simple that has 3 TextBoxes
and 3 buttons and I want to save the information typed in Textboxes
in a table.
I’ve already created the querys
all within a class acessoBD
, but I can’t access the Mysql.
The Mysql is integrated with Visual Studio, there in server explorer I can touch the database, create tables, etc. The problem is when to run the program and ask for access to it via SqlConnection
. When I tried to SqlConnection
kind of error 40, now with SqlCeConnection
(vi in a topic that this change could solve the problem) is pointing out a new error.
Daniel, in your image, at no time are you accessing the bank. And more importantly, you’re trying to access a Mysql database using the Sqlserver providader, so it won’t even rs. You must install the mysql package. Here are some links that can help you: http://www.codeproject.com/Tips/423233/How-to-Connect-to-MySQL-Using-Csharp http://www.macoratti.net/08/c_mysql1.htm
– Wennder dos Santos