mysql-connector

Installing mysql-2.9.0 gem on Windows fails due to lack of libmysql

自古美人都是妖i 提交于 2019-12-01 06:20:17
问题 I'm trying to install Redmine 2.1.4 on Windows Server 2003. For it to work, I need to install activerecord-mysql-adapter gem, which in turn seems to rely on mysql-2.9.0.gem . I've downloaded the latter from rubygems and executed: gem install mysql-2.9.0.gem which gives the following output: C:\>gem install mysql-2.9.0.gem Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing mysql-2.9.0.gem: ERROR: Failed to build gem

Why won't Python return my mysql-connector cursor from a function?

扶醉桌前 提交于 2019-12-01 05:53:17
Python (2.7.3) is violating my mysql-connector cursor in some strange way when I return it from a function. This first example works fine... cnx = connect() sql = "SELECT * FROM MyTable" cursor = cnx.cursor() cursor.execute(sql) row = cursor.fetchone() However, if I return the cursor and attempt the fetchone() (or a fetchall()) from outside, it throws an exception... def run_query(): cnx = connect() sql = "SELECT * FROM MyTable" cursor = cnx.cursor() cursor.execute(sql) return cursor mycursor = run_query() row = mycursor.fetchone() It throws... File "/usr/lib/pymodules/python2.7/mysql

MySQL Connector for Visual Studio 2012 Update 3

♀尐吖头ヾ 提交于 2019-12-01 05:27:19
since I've installed mysql connector 6.7.4 and Update 3 for Visual Studio 2012 the MySQL Connector is gone away from the Connection Manager dialog. It was a working project, so the data source configuration is correct. But when I open my existing *.edmx file I get an error (see the picture below). I've tried to reinstall the connector with rebooting between each installation step, controlled the GAC but I cannot get the connector working back again. I believe it is related to the Update 3, as mentioned in the comment of the answer post here: mySQL DataSource on Visual Studio 2012 I'm not able

MySQL Connector/C++ BAD ACCESS crash

北城余情 提交于 2019-12-01 04:56:34
问题 Using C++ in Xcode I try to access a MySQL database with the MySQL Connector/C++. Problem is that the program (compiled with Xcode) always crashes with EXC_BAD_ACCESS (code=13, address=0x0) when calling driver->connect(url, user, pass) In Xcode I created a complete new project (OS X > Command Line Tool), inserted the code (see below) in the main.cpp, added Boost and MySQL Connector header include paths as well as libmysqlcppconn.6.1.1.1.dylib as Link Library and hit the Run button. Next thing

Why won't Python return my mysql-connector cursor from a function?

心不动则不痛 提交于 2019-12-01 03:44:45
问题 Python (2.7.3) is violating my mysql-connector cursor in some strange way when I return it from a function. This first example works fine... cnx = connect() sql = "SELECT * FROM MyTable" cursor = cnx.cursor() cursor.execute(sql) row = cursor.fetchone() However, if I return the cursor and attempt the fetchone() (or a fetchall()) from outside, it throws an exception... def run_query(): cnx = connect() sql = "SELECT * FROM MyTable" cursor = cnx.cursor() cursor.execute(sql) return cursor mycursor

Obtaining Table metadata from mysql in java

痴心易碎 提交于 2019-12-01 01:55:43
Is there a way to get table metadata before first executing select query on the table? Restated: Is there a way to get the column size of a specific row and column of data for the numeric types: int, tinyint, bigint, etc? DatabaseMetaData md = connection.getMetaData(); ResultSet rs = dbmd.getColumns(null, null, tableName, "%"); I can't use the above code as the COLUMN_SIZE for numeric type( int,tinyint,bigint,etc ) will return the maximum allowed size for these types. I need to get the columnDisplaySize. The above code will return 10 for int(8) , but I need 8 which I can get from

How to customize MySql Connector/net?

ぐ巨炮叔叔 提交于 2019-12-01 00:29:04
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? Travis J 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/connector/net/ Step 2) Open Next, you are going to have to unzip the downloaded source files. The meat

undefined reference to 'get_driver_instance'

柔情痞子 提交于 2019-12-01 00:06:21
I'm getting "undefined reference to 'get_driver_instance'" when building even the most simple example from: http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html . It builds and runs fine on my local machine but it won’t build on the server – seems like linking mysql library issue. This is my build cmd: g++ -o test -Iinclude -Llib -L/usr/lib64/mysql main.cpp I can’t run the local built binary on the server as it was built using dynamic 'libmysqlclient.so'. I also tried to install the static libmysqlclient.a on my local machine but I can’t find ‘libmysqlclient.a’

Which execute function should i use in MySQL connector/c++?

半城伤御伤魂 提交于 2019-11-30 21:49:33
I need to write a wrapper (based on MySQL Connector/C++ ) which encapsulate specific SQL statements and provide user friendly interfaces, like: insert() , update() , delete() , select() , etc. In MySQL's native C API, every SQL statement could be executed by simply call "mysql_real_query()" , but now, in MySQL Connector/C++ , things get a little confused. There's 3 execute functions in sql::Statment class and 6 execute functions in sql::PreparedStatement class: mysql-connector-c++-1.1.5\driver\mysql_statement.h: bool execute(const sql::SQLString& sql); sql::ResultSet* executeQuery(const sql:

undefined reference to 'get_driver_instance'

痞子三分冷 提交于 2019-11-30 18:07:55
问题 I'm getting "undefined reference to 'get_driver_instance'" when building even the most simple example from: http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html. It builds and runs fine on my local machine but it won’t build on the server – seems like linking mysql library issue. This is my build cmd: g++ -o test -Iinclude -Llib -L/usr/lib64/mysql main.cpp I can’t run the local built binary on the server as it was built using dynamic 'libmysqlclient.so'. I