cd mysqlconnector/build
cmake .. -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++" -DWITH_JDBC=ON
make -j 12
sudo make install