Giter VIP home page Giter VIP logo

mysql-connector's Introduction

Mysql Connector Example

Pre-requisites

you need to install vcpkg as c++ package manager using the following command

git clone https//github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh

you will find all dependencies in the vcpkg.json file which will be installed while building the project

sudo chmod -R 777 /opt/vcpkg/

sudo chmod -R 777 /root/.cache/vcpkg/

installing vcpgk

wget -O vcpkg.tar.gz https://github.com/microsoft/vcpkg/archive/master.tar.gz
sudo mkdir /opt/vcpkg
sudo tar xf vcpkg.tar.gz --strip-components=1 -C /opt/vcpkg
sudo /opt/vcpkg/bootstrap-vcpkg.sh
sudo ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg
vcpkg version
rm -rf vcpkg.tar.gz

# to remove vcpkg
sudo rm -rf /opt/vcpkg
sudo rm -rf /usr/local/bin/vcpkg
sudo rm -rf /root/.cache/vcpkg
sudo rm -rf /root/.vcpkg
rm -rf ~/.vcpkg

give permission to current user

sudo chmod -R 777 /opt/vcpkg
sudo chmod -R 777 /root/.cache/vcpkg

In Debug mode

open the terminal in the root directory of the project and run the following command

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release 
cmake --build build --config Release
./build/Release/myapp
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug
./build/Debug/myapp

mysql-connector's People

Contributors

ahmed192a avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.