mysql-connector

How to connect to mysql using mysql connector via C# without actually installing the connector

左心房为你撑大大i 提交于 2019-12-05 04:01:38
We have a dot net 2.0 based C# product which uses Mysql as the data storage. When we install the mysql connector 6.3.6 on the XP/Win 7 machine, we are able to connect to the database from the C# code without any issues. But we are facing a problem while connecting to the mysql database when the mysql connector is actually not installed on the machine but is just present in the same directory as the executable. We don't want to install the connector on each and every machine we want the product to run on. We want the connectory dll to be used directly as we use any 3rd party dll (e.g logger) in

Unable to update EntityFramework models from MySQL database in Visual Studio 2015 RC

我的未来我决定 提交于 2019-12-05 02:23:25
My organization upgraded from Visual Studio 2013 to Visual Studio 2015 RC a couple months ago, and we only just now attempted to update some of our existing "db-first" EntityFramework models from our MySQL database. When doing so, we received the following error. An exception of type 'System.ArgumentException' occurred while attempting to update from the database. The exception message is: 'Unable to convert runtime connection string to its design-time equivalent. The libraries required to enable Visual Studio to communicate with the database for design purposes (DDEX provider) are not

Cannot uninstall MySQL Connector/Net 6.3 or higher

拟墨画扇 提交于 2019-12-05 02:06:28
问题 I cannot install MySQL Connector/Net due MS Web Platform because of that error. MSI (s) (E4:D8) [12:15:40:237]: Doing action: LaunchConditions Action ended 12:15:40: SetHLMPath. Return value 1. Action start 12:15:40: LaunchConditions. MSI (s) (E4:D8) [12:15:40:238]: Product: MySQL Connector Net 6.5.4 -- A previous version of Connector/Net 6.3 or higher is already installed. Please uninstall that version first. Action ended 12:15:40: LaunchConditions. Return value 3. Action ended 12:15:40:

MySQL Connect/C++ 64 bit build error

笑着哭i 提交于 2019-12-04 20:54:22
I am using Netbeans and MacoSX and installed 64bit connector. On building I am getting following errors: /usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf /usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/inventory mkdir -p build/Debug/GNU-MacOSX rm -f build/Debug/GNU-MacOSX/addproduct.o.d g++ -c -g -Iinclude -Iinclude -MMD -MP -MF build/Debug/GNU-MacOSX/addproduct.o.d -o build/Debug/GNU-MacOSX/addproduct.o addproduct.cpp from addproduct.cpp:10: In file included from include/mysql_connection.h:30, include/cppconn/connection.h:31:29: warning: boost/variant

Entity Framework 5.0 code-first with MySQL Connector 6.6.5.0 on .Net 4.5

痞子三分冷 提交于 2019-12-04 13:02:19
问题 For the life of me, I can't get my C# WinApp to work with Entity Framework 5.0 with a MySql database using MySql connector 6.6.5.0 ( MySql.Data reference) and MySql Entity 6.5.4.0 ( MySql.Data.Entity reference). Using .Net Framework 4.5 on Visual Studio 2012. At the time of this writing, the versions above are all the latest stable ones. Here's what I have on app.config <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <!-- For more information on Entity Framework

EntityFramework 6 Alpha 2 & MySQL Connector/NET 6.6.4

别等时光非礼了梦想. 提交于 2019-12-04 12:46:07
The 6.6.4 MySQL .NET connector apparently has support for EF6. I've upgraded from EF5 and .NET 4 to EF6 alpha2 and .NET 4.5. I've recreated the ADO.NET Entity Data Model since upgrading. Upon doing anything to the database it throws up an exception message saying; ItemModel.ssdl(2,2) : error 0152: No Entity Framework provider found for 'MySql.Data.MySqlClient' ADO.NET provider. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information. Currently my app.config file contains; <?xml

persist java LocalDate in MySQL

…衆ロ難τιáo~ 提交于 2019-12-04 12:41:30
问题 I'm writing a java client application using: SE 8, MySQL 5.6 (Connector/J 5.1), JPA 2.1. when I try to persist an entity with an ID (int Auto-increment), date (LocalDate). it throw an Exception says: Internal Exception: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '\xAC\xED\x00\x05sr\x00\x0Djava.time.Ser\x95]\x84\xBA\x1B"H\xB2\x0C\x00\x00xpw\x07\x03\x00\x00\x07\xDF\x03\x06x' for column 'date' at row 1 does MySQL (I mean The Connector) do not support the new Date

MySQL Connector C++ 64bit build from source in Visual Studio 2012

孤人 提交于 2019-12-04 11:24:03
I am trying to build the mySQL Connector C++ from source in Visual Studio 2012 for the 64-bit architecture. I understand that it depends on some boost header files and the C connector. Running CMake produces a project file, but that project file doesn't compile because of a big list of very confusing errors which probably have to do something with the include files, and an even bigger list of warnings. The official site is of little help. Could some one please list all the steps in successfully compiling the C++ Connector? In order to build it you need to have the following: You need to have

Is there a way to connect to a MySQL database without ssl?

我们两清 提交于 2019-12-04 04:31:40
I'm trying to connect to a local MySQL DB. I have this connector: using(MySqlConnection conn = new MySqlConnection("Database=Studentenverwaltung;Port=3306;Data Source=127.0.0.1;User Id=root;Password=abc123")) { try { conn.Open(); Console.WriteLine("Opened!"); conn.Close(); } catch(Exception e) { Console.WriteLine("Cannot open Connection"); Console.WriteLine(e.ToString()); } } But I get this Exception: MySql.Data.MySqlClient.MySqlException (0x80004005): The host 127.0.0.1 does not support SSL connections. It seems that it cannot connect to the DB because the DB doesn't support SSL. So is there

Django: how to install mysql/connector python with pip3

被刻印的时光 ゝ 提交于 2019-12-04 04:16:09
I am working on projects based on Django 1.7 and Python 3.4. However, I had problems installing MySQL/Connector Python with pip3. According to this document , MySQL/Connector Python supports Python 3. I used to install MySQL-python in Python with command pip install MySQL-python . This download page only provides .deb files for installation on Ubuntu (btw, the installation also has conflict problems ) I tried to install with: pip3 install mysql-connector-python --allow-external mysql-connector-python No error messages. But when I run the Django app, I got the following error message: django