C++ to MySQL connection – Code Blocks




About this tutorial:

Video duration: 10:54
In this video i will show you how to connect your C++ code to MySQL database using code blocks.

DevCpp :

CodeBlocks :

Xampp :

Files :

File (mirror) :

Code :

Project :

#programming #cpp #mysql

Post Author: OfficeTutes.com

Apple lover, ICT and LEAN consultant, MS Office lecturer My other website with video tutorials - Tutorials, guides and news for iPhones and iPads

16 thoughts on “C++ to MySQL connection – Code Blocks

    surinder saini

    (August 18, 2019 - 2:11 pm)

    Can I connenct postgresql with c++

    smart scientist

    (August 18, 2019 - 2:11 pm)

    it worked

    smart scientist

    (August 18, 2019 - 2:11 pm)

    guy!!!you are really awesome

    Santiago Martinez

    (August 18, 2019 - 2:11 pm)

    somalia ?

    ttmylink

    (August 18, 2019 - 2:11 pm)

    Great tutorial! The only thing I could not get to work is stored procedure. How can I call them? I tried to replace a select statement (inside mysql_query) with "call mystoredprocedure()" but I get a "mystoredprocedure can't return a result set in the given context" even if it work well on phpmyadmin.

    суперкрот20199

    (August 18, 2019 - 2:11 pm)

    Subtitles pls

    Sargam Gupta

    (August 18, 2019 - 2:11 pm)

    Can we use Turbo C++ instead of Dev C++?

    Least Significant Bit

    (August 18, 2019 - 2:11 pm)

    After following this tutorial step by step, I'm getting error in mysql.h file – SOCKET does not name a type. Could you please help me?

    rajiv shrestha

    (August 18, 2019 - 2:11 pm)

    undefined reference to `mysql_init@4'

    rajiv shrestha

    (August 18, 2019 - 2:11 pm)

    i m using visual studio code ide and mingw-w64 compiler i m able to inclue the header file also coped library file.. but get error of undefine while debugging.. could you please help.?

    afaf aloullal

    (August 18, 2019 - 2:11 pm)

    I'm using visual studio instead of Dev-Cpp. I configured my Visual Studio for MySQL using but the connection is not sucessful :
    Project: TestBD, Configuration: Debug Win32 ——

    1> main.obj: error LNK2019: unresolved external symbol _mysql_init @ 4 referenced in _main function

    1> main.obj: error LNK2019: unresolved external symbol _mysql_real_connect @ 32 referenced in _main function

    Aishwaryaditya Singh

    (August 18, 2019 - 2:11 pm)

    how to create database using my php

    Shadman Afzal

    (August 18, 2019 - 2:11 pm)

    is there is way of using mysql software instead of xampp

    Marian Gallus

    (August 18, 2019 - 2:11 pm)

    I tried this with Dev-Cpp 5.11 TDM-GCC 4.9.2 Setup but it desn't work. It is working only with devcpp_v4_9_9_2_setup. What should be compiler settings?

    Ahmad Muzayyin

    (August 18, 2019 - 2:11 pm)

    How to delete record data use that lib ?
    Thanks

    RedHax HD

    (August 18, 2019 - 2:11 pm)

    wew

Leave a Reply

Your email address will not be published. Required fields are marked *