Jūs esateŽurnalai / Ernestas Kardzys's blog / MySQL C++ Connector & my MySQL server

MySQL C++ Connector & my MySQL server


ParašėErnestas Kardzys - 2010 Rugpjūčio 19

Today I've tried to install MySQL C++ Connector for Windows (http://www.mysql.com/downloads/connector/cpp/ also check this website: http://forge.mysql.com/wiki/Connector_C%2B%2B and this one: http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html). Ok, but lets get back to my experience with MySQL C++ Connector. The problem is that I couldn't make it work on Windows. I've copied mysqlcppconn.lib & mysqlcppconn.dll to my project's directory. Those files were included into my project. I've successfully compiled the project. But when I tried to run the program I got an exception - my program can not connect to MySQL web server. And I don't know why :/ So, I used MySQL C API functions in my C++ application. It worked ;)

Skelbti naują komentarą

Šio laukelio turinys bus laikomas privatus ir nerodomas viešai.
  • Web puslapiu adresai ir el. pašto adresai automatiškai tampa nuorodomis.
  • Leidžiamos HTML žymės: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Linijos ir paragrafai atskiriami automatiškai
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

Daugiau informacijos apie teksto formatavimą

CAPTCHA
Šis klausimas yra skirtas įsitikinti, jog jūs esate žmogus, ir sustabdyti automatinį šlamšto siuntimą.
12 + 1 =
Išspręskite šią paprastą matematinę užduotį ir įveskite atsakymą. Pvz., jei užduotis yra 1+3, įveskite 4.