Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all 1447 articles
Browse latest View live

unknown innobd data engine (no replies)

$
0
0
Hy,
I want to establish the connection between a vb.net application in a client poste and MySQL server I used the .NET connector but I have a Error Message:
unknown innobd data engine
thanks for your Help.

Cannot Add Connection in VS2010 (Window Closes) (1 reply)

$
0
0
I've found reports of this bug in many versions of the Connector NET and VS, with no working solutions anywhere. I just installed 6.6.4. I did a complete install and there were no errors. When I go to add a new connection in VS2010, I do Choose Data Source -> MySQL Database and I get to the Add Connection window. If I start to type anything into the window, the window closes immediately without an error. If I press the spacebar in this window, I get "Error: Object reference not set to instance of an object." If I just hit the ok button without typing anything I get "Unable to find the requested .NET Framework Data Provider. It May not be installed."

I verified that all of the mysql DLLs are in Window\Assembly. I've tried uninstalling/installing Connector NET. I've tried uninstalling/installing VS2010. I've tried clearing the AppData\Roaming\VisualStudio folder as others have recommended. I've tried clearing the eventviewer log as others have recommended.

Any help would be appreciated. Thank you.

Adodb with Windows 7 - 64 bits (1 reply)

$
0
0
I using MySQL data base with adodb 492 and 511 in Windows XP
but in Windows 7 - 64 bit doesn´t work.
Can somebody help me?

Print barcode in C# (1 reply)

$
0
0
Now I am working on C# and I need to create QR Code barcode in my C# program. Can anyone tell me how to create QR Code barcode in C#? Many thanks!

“Arithmetic operation resulted in an overflow” error upon MySQLConnection.Open() (3 replies)

$
0
0
Setup:

Windows 7 SP1 64 bit Visual Studio 2012 MySQL .Net Connector 6.6.4

I have a vb .net WinForm app which connects to a MySQL server using the MySQL .Net Connector. When the code where I open the connection executes, i.e.:

Dim mySQLcon As New MySql.Data.MySqlClient.MySqlConnection("SERVER=www.tadirect.co.za;DATABASE=tadirq_db1;UID=********;PASSWORD=********;")
mySQLcon.Open()

At the mySQLcon.Open() line I get the following exception:

System.OverflowException: Arithmetic operation resulted in an overflow at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.HandleAuthChange(MySqlPacket packet)
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Authenticate(String authMethod, Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Open() at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at TAD_Automator.modWebsite.UpdateMySQLDatabase_Cases(Boolean bSilent)}

I have tried changing the build from Any CPU to 32 bit as well as 64 bit but it made no difference... Any ideas?

MySQL column and row check in VB.NET (1 reply)

$
0
0
Hi. in PHP I would use this to check for the total number of rows in a given table:

$row_num = mysqli_num_rows($result);

How is it done int VB.NET? for that matter I would like to check for the total number of columns as well.

thank you.

Named Pipes Provider error (no replies)

$
0
0
I am just starting to learn SQL and C# programming with Visual Studio 2010 and mySQL. I have wrote a very simple form that links to my SQL Database and should write information to the database. When I try to save the data after filling in the form I am seeing:

"provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL server"

anyone any ideas on how to fix this?

I am using mySQL server 5.5 if that makes any difference.

Start Transaction - lost connection - rollback error (no replies)

$
0
0
Hello,

I Connect to Mysql using a UI app for eg VB6 using a connection string
then

Start transction
Do Updates
'err Lost Connection

try RollBack 'Err because no connection active

try Close Connection 'Err because Transaction is active

Now i can dispose the connection object and create another connection when connection is available. but even after closing the application if i do "Show ProcessList". the first connection is still there in sleep mode.

How do i get rid of this connection.?

Can i get the connection ID (ID column in the show ProcessList) from any mysql variable when i Open a connection? So that i can call KILL function to close it?

Thanks

How can ASP.NET development be applied in a programming environment? (1 reply)

$
0
0
Hi,

Iam New To This Technology Can Any One Elaborate

How can ASP.NET development be applied in a programming environment?

Thanks in Advance

Arithmetic Operation Resulted in an Overflow (1 reply)

$
0
0
I have an application developed with Visual Studio 2010 Ultimate. This application has already been published on my network and users are using it without a problem. I developed it on the same machine running Windows XP Pro SP3.

Recently I decided to upgrade the OS to Vista Business Edition (32-bit) and now all of a sudden I'm getting an exception of "Arithmetic Operation Resulted in an Overflow" whenever I try to debug the application. The exception is being thrown just when the application is opening the database connection.

The strange thing is that, I have several other machines running Win XP and Win 7 respectively and none have this issue. I've already submitted a bug report (http://bugs.mysql.com/bug.php?id=67953&thanks=sub). Not sure what to do. Already uninstalled the Connector, deleted all folders, and reinstalled but same problem.

Could there be a problem with Vista and the .Net Connector?

//Kismet

Visual Studio 2010, MySQL Server and .NET Connector (3 replies)

$
0
0
Hi,

What is the best combination of MySQL Server and .NET Conector for working with Visual Studio 2010 Professional?

Cheers,

Carlos Mallen

Erro ao usar ExecuteNonQuery() (4 replies)

$
0
0
Olá galera,
sou novo aqui e estou tentando criar uma aplicação com o visual c++.
Nessa aplicação eu uso banco de dados até aagora consegui conectar beleza ao BD, porém quando vou utilizar o ExecuteNonQuery() ele dá um erro de como se não existisse conexão aberta... segue abaixo o código utilizado.
OBS: é um login onde ele pega os dados do textBox e joga na colsulta para validar ou não o usuário.
Aguardando resolução para o problema Vlw.


MySqlConnection conn("server=000.000.000.00;User Id=root;Persist Security Info=True;database=teste;Password=********");
MySqlCommand consult;
conn.Open();
consult.CommandText = "SELECT * FROM admin WHERE usuario = '"+textBox_login->Text+"' and senha = '"+passwordtxtbox->Text+"';";
consult.ExecuteNonQuery()

Problem to reload a dump file to a database via ExecuteNonQuery. Visual Studio 2005, MySQL Server and .NET Connector. (1 reply)

$
0
0
The .NET Connector is working great to a remote Linux MySQL Server.
But I have a problem with this for example:

Dim conn As New MySql.Data.MySqlClient.MySqlConnection
Dim myConnectionString As String

myConnectionString = "server=testsystem;" _
& "uid=tester;" _
& "pwd=test;" _
& "database=test;"

Try
conn.ConnectionString = myConnectionString
conn.Open()

Catch ex As MySql.Data.MySqlClient.MySqlException
MessageBox.Show(ex.Message)
End Try


Dim strSQL As String = "drop database test;"
Dim myCommand As MySqlCommand = New MySqlCommand(strSQL, conn)

Try
myCommand.ExecuteNonQuery()

Catch ex As Exception
MsgBox("Fehler beim Löschen der DB: " & ex.ToString)
End Try

strSQL = "create database test;"
myCommand = New MySqlCommand(strSQL, conn)
Try
myCommand.ExecuteNonQuery()


Catch ex As Exception
MsgBox("Fehler beim Anlegen der DB: " & ex.ToString)
End
End Try

strSQL = "use test;"
myCommand = New MySqlCommand(strSQL, conn)
MsgBox(strSQL)
Try
myCommand.ExecuteNonQuery()

Catch ex As Exception
MsgBox("Fehler beim Verwenden der DB: " & ex.ToString)
End

End Try


'Does not work!
Dim dumpfile As String = "dbdump.sql"
Dim DumpTarget As String = "/test/dumps/" & dumpfile
strSQL = "source " & DumpTarget & ";"


myCommand = New MySqlCommand(strSQL, conn)
Try
myCommand.ExecuteNonQuery()

Catch ex As Exception
MsgBox("Fehler beim Einspielen des Dumps: " & ex.ToString)
End
End Try

This is working fine, but not the last ExecuteNonQuery with the source command (see http://dev.mysql.com/doc/refman/5.6/en/reloading-sql-format-dumps.html )

This throws a MySqlException: You have an error in your SQL Syntax;

I have tried some other syntax, but failed.
Is this command (source) not working with ExecuteNonQuery?
What can I do to make this work?

Medium Trust with GoDaddy issyes (1 reply)

$
0
0
Regarding: 6.19.3. Configuring Partial Trust with Connector/Net Library Not Installed in GAC

I am using shared hosting with medium trust (goDaddy) and I don't have access to the medium trust policy web configuration file, and GoDaddy will not make any changes to this. I've managed to get an older version of Mysql.Data.dll working by adding [assembly: AllowPartiallyTrustedCallers] to the assembly as per http://rbrundritt.wordpress.com/2010/09/18/mysql-net-4-entity-framework-and-medium-trust-hosting-environments/

Could someone suggest anything else. Perhaps update the latest version with [AllowPartiallyTrustedCallers] ??

Connecting From ASP.NET Framework 3.5 to MySql error (3 replies)

$
0
0
Hi,

I have a problem connecting to MySQL from VS 2010 (C#) (Framework 3.5)
I downloaded the mysql-connector-net-5.2.7-noinstall package. I added the mysql.data.dll in my application (console application).
My connectionstring is as follows:
mysqlConn.ConnectionString = "server=" + sMySQLServer + ";uid=" + sMySQLDBUser + ";pwd=" + sMySQLDBPwd + ";database=" + sMySQLDB + ";";

When it tries to connect I get the following exception:
No connection could be made because the target machine actively refused it (here it puts the ip):3306
Source: MySql.Data

Please help.
Thanks in advanced

Where's the source code ? (1 reply)

$
0
0
Hi,

So the question is simple ... where's the code ?

Thanks.

MySQLProv install (1 reply)

$
0
0
Hi,
Why when I use connection-string bellow (for Vb6 or VB.NET), return error: Provider not found? I have installed MySQL connector.
Provider=MySQLProv;Data Source=127.0.0.1;User Id=root;Password=;

Where I download and install de MySQLProv provider??
thanks

mySQL Connector to Windows mobile (no replies)

$
0
0
Hello,

I search a solution for connecting my .net application for windows mobile to a mysql database ...
I have found the "devart" tool, it's works, but it's not free ...

Knows someone an free tool for connecting mysql to win mobile?

thx
best regards
Wilfrid

Connecting with SSH (2 replies)

$
0
0
Hi,
The code below works fine and connects securely to the server and then the database but once its run a second time its hangs for about 5-6 seconds while opening the MYSQL connection and running a query. If I run this without SSH it works fine no matter how many times I run it. Any other application I have connect via SSH works fine.

Simple form with connection details in textboxs and a datagridview to display the results.

Please help going a bit mental with the coffee trying to figure it out!!!!!

Cheers,

John

private DataTable MYSQL_GET(string sQuery)
{
DataTable dt = new DataTable();

using (var client = new SshClient(txtSSH_Address.Text, txtSSH_Username.Text, txtSSH_Password.Text))
{
client.Connect();

var port = new ForwardedPortLocal("127.0.0.1", Convert.ToUInt32(txtSQL_Port.Text), "localhost", Convert.ToUInt32(txtSQL_Port.Text));
client.AddForwardedPort(port);

port.Start();

string connstr = "server=localhost;user=" + txtSQL_Username.Text + ";database=store;port=" + txtSQL_Port.Text + ";password=" + txtSSH_Password.Text + ";";

using (MySqlConnection conn = new MySqlConnection(connstr))
{
conn.Open();

MySqlDataAdapter da = new MySqlDataAdapter(sQuery, connstr);
da.Fill(dt);

conn.Close();
}

port.Stop();
client.Disconnect();

return dt;
}
}

net connector w7 64bit (2 replies)

$
0
0
So far net connector supports 32bit OS.
So, it cant work for windows 7 64bit.

When will a windows 64bit net connector be available?

Regards
Viewing all 1447 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>