Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 00:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MySQL & VS2010

Discussion on MySQL & VS2010 within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
ernilos's Avatar
 
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? ><
ernilos is offline  
Old 09/04/2012, 14:07   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87


and here the download for the .net connector from mysql.com
kissein is offline  
Old 09/04/2012, 15:17   #3
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Quote:
Originally Posted by kissein View Post


and here the download for the .net connector from mysql.com
I need to c++ No c#...
ernilos is offline  
Old 09/04/2012, 18:08   #4
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
oh sry, my fault, little confused today
kissein is offline  
Old 09/11/2012, 17:10   #5
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Please, Help! :c
ernilos is offline  
Old 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?
SmackJew is offline  
Old 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.
Nightblizard is offline  
Old 09/11/2012, 22:35   #8
 
ernilos's Avatar
 
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:
ernilos is offline  
Old 09/11/2012, 22:48   #9
 
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
Quote:
Originally Posted by ernilos View Post
Problem are in that:
Code:
con = driver->connect("localhost", "root", "Pssw");
Give me a 'Acces Violation'
.. That:
Code:
driver = new Driver(...);
SmackJew is offline  
Old 09/11/2012, 22:50   #10
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Quote:
Originally Posted by SmackJew View Post
Code:
driver = new Driver(...);
I have that
Code:
sql::Driver *driver;
If I write driver = new sql:river(); Give me errors :/
ernilos is offline  
Old 09/11/2012, 22:53   #11
 
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
Quote:
Originally Posted by ernilos View Post
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();
SmackJew is offline  
Old 09/11/2012, 22:57   #12
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Quote:
Originally Posted by SmackJew View Post
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
ernilos is offline  
Old 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.
SmackJew is offline  
Old 09/13/2012, 14:32   #14
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Quote:
Originally Posted by SmackJew View Post
Properly link the libs or change to the 32 bit version of it.
I tryed 2 versions of MySQL and give me 'Acces Violation' ...
ernilos is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.