mysql-connector

Mysql connector/C++ for windows 2010 express not compiling

♀尐吖头ヾ 提交于 2019-12-22 04:55:42
问题 SOLUTION: I have decided to make a step by step guide for people having the same issues. I don't know if this fully fixes everything but it does let you compile the code snippet I will provide. If there are any errors please comment so I can fix them. This is intended to help those who have mostly given up from failed attempts, and to be frank, the whole process should have been documented. Sorry for the long post :P STEP BY STEP FOR SETTING UP MYSQL CONNECTOR/C++ FOR 2010 MICROSOFT VISUAL C+

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

谁说胖子不能爱 提交于 2019-12-22 04:19:12
问题 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

Why does MySql Connector.Net work on my Windows box but not on Mono?

你离开我真会死。 提交于 2019-12-22 01:19:28
问题 I have installed Mono (version 2.10.2), mod_mono and have successfully tested it with both an index.html and an index.aspx echoing the date. My problem is that I can't get MySQL to work with Mono; I have downloaded the mysql-connector-net-6.4.3-noinstall.zip file, renamed the dll to MySql.Data.dll, (from v2 folder) I have installed with gacutil -i MySql.Data.dll and edited both machine.config files (for 2.0 and 4.0) adding the following: <add name="MySQL Data Provider" invariant="MySql.Data

.NET CORE MySql MaxPoolSize not applied in

耗尽温柔 提交于 2019-12-22 00:45:06
问题 We have a MySQl database hosted in RDS. When creating a MySQL Connection the maximum Pool size doesn't seem to be applied. We have a connection string that looks like this Server=myServer;Port=3306;Database=MyDatabase;User Id=MyUser;Password=MyPassword;ConnectionReset=True;pooling=true;minpoolsize=1;maxpoolsize=4;ConnectionLifeTime=30" We are adding the max pool size over here, but our application still keeps taking too many connections. I've verified this in MySqlWorkbench with the command

Django: how to install mysql/connector python with pip3

泄露秘密 提交于 2019-12-21 12:26:50
问题 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

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

空扰寡人 提交于 2019-12-21 10:47:09
问题 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

MySql Connector prepared statement only transfers 64 bytes

风格不统一 提交于 2019-12-20 05:26:09
问题 I am using the MySql Connector C++ to store a JPEG image from a file into the database. I am using the prepared statement. After execution of the prepared statement, only the first 64 bytes of the file are copied into the database. My research of examples show that no iteration is necessary and the examples assume that the prepared statement loads the entire file. Here is my code: std::string statement_text("INSERT INTO "); statement_text += "picture_image_data"; statement_text += " (";

How to customize MySql Connector/net?

[亡魂溺海] 提交于 2019-12-19 04:11:46
问题 MySql Connector/Net is not working properly. The team working on bugs is only 3 people and they do not resolve complex issues. There are still unresolved issues from 2009. I want to customize their connector so that it works for my complex situation. How can I use a customized version in my project instead of theirs? 回答1: Step 1) Download In order to customize a version of oracle's mysql connector / net you are going to have to download the source code here: http://dev.mysql.com/downloads

How to create a mysql connection pool or any better way to initialize the multiple databases?

空扰寡人 提交于 2019-12-18 16:57:52
问题 In my code I am opening two mysql connections and using HTTP requests to insert data into database g.db = mysql.connector.connect(user=a ,password=password, host=localhost,database=mysq1) g.db1 = mysql.connector.connect(user=b,password=password, host=localhost,database=mysql2) @app.route('/user/<db>') def insert(db): #code for inserting data into mysql1 database #code for inserting data into mysql2 database I am making HTTP requests to select the databases. curl -i 'localhost:5000/user/mysql1

MySQL C++ Connector: undefined reference to `get_driver_instance'

↘锁芯ラ 提交于 2019-12-18 13:27:33
问题 I've been trying to get the MySQL connector working I've installed both the connector and the mysql client library but I am still getting this error: obj/Database.obj: In function `Database::connect()': /home/xeross/alpine/src/server/Database.cpp:13: undefined reference to `get_driver_instance' collect2: ld returned 1 exit status make[2]: *** [alpine-server] Error 1 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 Using Ubuntu 10.04 And my makefile is as follows: INCLUDES =