|
You last visited: Today at 00:29
Advertisement
MySQL & VS2010
Discussion on MySQL & VS2010 within the C/C++ forum part of the Coders Den category.
09/04/2012, 13:31
|
#1
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
MySQL & VS2010
I'm trying to add MySQL libs to VS2010, but i fail... I have c++ Connectors from MySQL web...
Can somebody help me to add libs to my project? ><
|
|
|
09/04/2012, 14:07
|
#2
|
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
|
and here the download for the .net connector from mysql.com
|
|
|
09/04/2012, 15:17
|
#3
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
Quote:
Originally Posted by kissein
and here the download for the .net connector from mysql.com

|
I need to c++ No c#...
|
|
|
09/04/2012, 18:08
|
#4
|
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
|
oh sry, my fault, little confused today
|
|
|
09/11/2012, 17:10
|
#5
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
Please, Help! :c
|
|
|
09/11/2012, 17:40
|
#6
|
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
|
You already tried sqlite and made a thread about it and ignored the advice that was given to you. What else do you want?
|
|
|
09/11/2012, 18:41
|
#7
|
elite*gold: 5
Join Date: Sep 2006
Posts: 385
Received Thanks: 218
|
Code:
#include "mysql/include/mysql.h"
#pragma comment(lib, "mysql/lib/libmysql.lib")
So, what exactly is the problem? You could also add the .lib file inside your projects solution file, but that up there already does the job.
|
|
|
09/11/2012, 22:35
|
#8
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
Problem are in that:
Code:
con = driver->connect("localhost", "root", "Pssw");
Give me a 'Acces Violation'
.. That:
|
|
|
09/11/2012, 22:48
|
#9
|
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
|
Quote:
Originally Posted by ernilos
Problem are in that:
Code:
con = driver->connect("localhost", "root", "Pssw");
Give me a 'Acces Violation'
.. That:
|
Code:
driver = new Driver(...);
|
|
|
09/11/2012, 22:50
|
#10
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
Quote:
Originally Posted by SmackJew
Code:
driver = new Driver(...);
|
I have that
Code:
sql::Driver *driver;
If I write driver = new sql:  river(); Give me errors :/
|
|
|
09/11/2012, 22:53
|
#11
|
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
|
Quote:
Originally Posted by ernilos
I have that
Code:
sql::Driver *driver;
If I write driver = new sql:  river(); Give me errors :/
|
If you're not gonna put any effort into it I'm not gonna keep posting. Took me literally 5 seconds to google this.
Code:
driver = get_driver_instance();
|
|
|
09/11/2012, 22:57
|
#12
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
Quote:
Originally Posted by SmackJew
If you're not gonna put any effort into it I'm not gonna keep posting. Took me literally 5 seconds to google this.
Code:
driver = get_driver_instance();
|
appears that error:
Error 1 error LNK2001: Extern Symbol __imp__get_driver_instance not resolved
|
|
|
09/11/2012, 23:01
|
#13
|
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
|
Properly link the libs or change to the 32 bit version of it.
|
|
|
09/13/2012, 14:32
|
#14
|
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
|
Quote:
Originally Posted by SmackJew
Properly link the libs or change to the 32 bit version of it.
|
I tryed 2 versions of MySQL and give me 'Acces Violation' ...
|
|
|
 |
Similar Threads
|
MySQL - L server through socket '/tmp/mysql.sock' (38) failed, retrying in 5 secon
06/28/2012 - Metin2 Private Server - 2 Replies
Hi EPvP
I have one problem whit my server. I install a new game + db and i start him
L server through socket '/tmp/mysql.sock' (38)
failed, retrying in 5 secondsSuccess HOTBACKUP
Why?
|
VS2010 C++ Manifest Datei bearbeiten..?
05/10/2012 - C/C++ - 8 Replies
Hallo EPVP,
Ich suche einen Weg, wie ich die Manifest Datei bearbeiten kann bzw. eine andere externe Manifest Datei zu verwenden. Leider ist schon
Step 6: Create and Embed an Application Manifest (UAC) sehr veraltet und hilft auch nicht weiter.
Kleine Anmerkung: Ich will dieses Problem nicht über #pragma.... lösen.
Kann mir da jemand bitte helfen?
MFG Tom
|
[ERROR] Mysql can't connect to local Mysql server through socket
10/08/2011 - Metin2 Private Server - 3 Replies
Hallo Liebe Com,
Undzwar habe ich ein Problem mit Mysql.
Als ich Mysql installiert habe konnte ich Problemlos drauf connecten,auch mit navicat.Aber als ich die Serverfiles (2011er) installiert habe und rebootet habe ging aufeinmal mysql nichtmehr.Wenn ich mysql -p eingebe steht dann da:
Wenn ich den Startbefehl eingebe steht da:
Was kann das sein? Und es passiert immer nur nach der Serverfiles installation.
Ich habe den Server schon 3x resetten lassen und es passierte immer das...
|
MySQL Navicat 1130-Host'5.xxx.xx.xxx' is not allowed to connect to the MySQL Server
08/07/2010 - Metin2 Private Server - 14 Replies
Hallo com,
ich habe ein Problem mit Navicat. Undzwar habe ich diesen Fehler hier : "1130-Host'5.xxx.xx.xxx' is not allowed to connect to the MySQL Server" seid gestern.
Ich dachte mir mal ich änder mein Navicat Passwort um... Als ich dies getan habe, und meinen Server rebootet habe und Navicat neugestartet habe, und ich mich wieder in Navicat einloggen wollte kam diese Fehlermeldung. Nun habe ich das Problem das ich mich nicht mehr mit Navicat connecten kann. Habe schon alles versucht...
|
All times are GMT +1. The time now is 00:30.
|
|