(A) the installation Ubuntu 18 C ++ ODB connected mysql

Environment: Virtual Machine -Ubuntu 18.04.3 Virtual PC software -VMware 15.5

 

Personally, I use Ubuntu Download: http://releases.ubuntu.com/18.04.3/ubuntu-18.04.3-desktop-amd64.iso

 

Download the complete installation as follows:

 

 

Note: before re-configure the download source.

 

Step One: Download here ODB environment using the command line download

 

After a successful installation

lib will be installed in / usr / lib / x86_64-linux-gnu

include会在/usr/include/odb

bin Kaizai / usr / bin / odb

 

Command can call to see if the installation was successful - you need to install GCC G ++   

sudo apt-get install gcc  

sudo apt-get install g++

View ODB version 

 

 

 

Step 2: Install mysql

sudo apt-get install mysql-server libmysqlclient-dev

Installation using mysql --version to see if the installation was successful

If you encounter login password error, please refer to the bloggers approach to modify the password  https://blog.csdn.net/weicao1990/article/details/89342146

 

The third step: Use personal habits qtCreator editor

qtCreator Download:  http://download.qt.io/archive/qt/5.13/5.13.2/

For simplicity I was placed in the / home / user /Qt5.13.2 down  

You can choose to be placed in / opt / under

 

As options

Guess you like

Origin www.cnblogs.com/tian11shiyi/p/12113331.html