Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

How do I get started with MySQL and C#?
Requested and Answered by Vanna on 24-Jan-2011 01:10 (5029 reads)
1.Dowload and install MySQL Community server from http://dev.mysql.com/downloads/mysql/.
Tip: During installation, it will ask for a lot of personal details. You can also just scroll to the bottom and click on skip registration.
2.Install it using default options.
3.In the final stage of the wizard, you might see that it seems to be hanged on 'Apply security settings". If it appears to be hanged, do this:
3.1 Go to Control panel->Administrative tools->services. Select MySQl and choose Stop service
3.2 Use task manager and click on end process for mySQLconfiguration.exe. The hanged dialog should exit now.
4. Go to Services panel, and start mySQL service
5. Open a command prompt and type this:
mysql -u root -p
6. It will ask for password, enter the root password you had chosen during installation.
eg., output:


C:\Documents and Settings\quantcode>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.5.8 MySQL Community Server (GPL)

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.




1.Download ADO .NET connector from this page: http://www.mysql.com/downloads/connector/net/
2. In the download connector page, select to download mysql-connector-net-6.3.6.zip.
3. Extract the file and run mysql.data.msi



Using the database
1.Download and install MySQL workbench from http://wb.mysql.com/
2. Creata a new schema.
Following is an example for creating a new schema called "test":
Step 1:
Open SQL workbench and click on Local host




Step 2:
Click on "Create new schema button" and create it with name "test" (as per terminology, schema is a database in MySql)




Step 3:
Select default schema as "test", and then copy paste text from script file in pairsdb.sql. Then click on execute button




Discuss or give feedback? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link

The comments are owned by the poster. We aren't responsible for their content.

Poster Thread
Anonymous
Posted: 2011/1/25 18:32  Updated: 2011/1/25 18:32
 How do I get started with MySQL and C#?
ADo .NET Connector installation hanged with message "Reconfiguring Visual studio 2005 .." .
Please help!

Poster Thread
Anonymous
Posted: 2011/1/26 13:34  Updated: 2011/1/26 13:34
 How do I get started with MySQL and C#?
I waited for 10 mins, and it finally did work like a charm except I don't know what it did for the 10 mins.

Poster Thread
Anonymous
Posted: 2011/1/27 16:38  Updated: 2011/1/27 16:38
 How do I get started with MySQL and C#?
can't find MySQl.Data when I try to include a reference. i registered manually using gacutils. it says assembly successfully added to Global assembly cache. however I can't see it in GAC, neither in the add reference dialog. when I choose to browse the dll for add reference, it displays a warning symbol. please help!!

Poster Thread
Anonymous
Posted: 2011/1/28 11:16  Updated: 2011/1/28 11:16
 How do I get started with MySQL and C#?
"can't find MySQl.Data when I try to include a reference"
I had a similar issue. I donwload source code mysql-connector-net-6.3.6.zip from the same www.mysql.com/downloads/connector/net/ link.
After building the project MySQl.Data in Visual C# 2008, I registered MySQl.Data.dll in GAC manually using .NET SDK command prompt. It still does not come up in the .NET components tab when I want to include a reference in my project, but I browse for the MySQl.Data.dll, and it works fine.
Gabriel

Poster Thread
Anonymous
Posted: 2011/1/28 13:27  Updated: 2011/1/28 13:27
 How do I get started with MySQL and C#?
I am getting a build error for strong name key not found when I try to build the MySQl.Data in VC# 2008

Poster Thread
Anonymous
Posted: 2011/1/28 13:36  Updated: 2011/1/28 13:36
 How do I get started with MySQL and C#?
I get this when I build MySql.Data :
"Error 1 Cryptographic failure while signing assembly 'C:\MySql.Data\Provider\obj\Debug\MySql.Data.dll' -- 'The key container name 'ConnectorNet' does not exist' MySql.Data"
Please help!!

Poster Thread
Anonymous
Posted: 2011/1/28 13:42  Updated: 2011/1/28 13:42
 How do I get started with MySQL and C#?
Hi,
1.click on menu project->project properties
2.Select signing tab
3.Select check box "sign the assembly"
4.Choose New in the combo box "Choose a strong name key file"
5.Enter ConnectorNet in the Key file name field of "choose strong key name" dialog.
6.Uncheck "protect my key file with a password"
7.click ok.
8.Do a rebuild

Poster Thread
Anonymous
Posted: 2011/2/4 17:27  Updated: 2011/2/4 17:28
 How do I get started with MySQL and C#?
Remember to install MySQL workbench too, (available at http://wb.mysql.com/) It is a helpful tool to create/edit tables and data
cruizerfish

Discuss or give feedback? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Similar Links:
Copyright © 2011 QuantCode Inc. All rights reserved.