Cara menggunakan vcpkg mysql connector

Changing to libmysql didnt work for me , I still get a error.

-----------------------------------------------------------------------------------------------
Building package libmysql[core]:x64-windows...
-- Downloading https://github.com/mysql/mysql-server/archive/mysql-8.0.4.tar.gz...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:99 (message):


File does not have expected hash:

File path: [ C:/Users/xxxx/Documents/vcpkg/downloads/temp/mysql-mysql-server-mysql-8.0.4.tar.gz ]
Expected hash: [ 8d9129e7670e88df14238299052a5fe6d4f3e40bf27ef7a3ca8f4f91fb40507b13463e9bd24435b34e5d06c5d056dfb259fb04e77cc251b188eea734db5642be ]
Actual hash: [ 39392eea30f1110c476f7d8d50159b16162b6dd741683f7ba2c440383fabaeef9565144285b969bce8ef2f26d2b4ce6f615256f6a61f227a80ed3ad9fa5bc3ee ]

The file may have been corrupted in transit. This can be caused by
proxies. If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY
environment variables to
"https://user:p[email protected]:port/".



Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:182 (test_hash)
scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile)
ports/libmysql/portfile.cmake:19 (vcpkg_from_github)
scripts/ports.cmake:90 (include)

Post automatically merged: Feb 17, 2020


snakeu said:

Changing to libmysql didnt work for me , I still get a error.

-----------------------------------------------------------------------------------------------
Building package libmysql[core]:x64-windows...
-- Downloading https://github.com/mysql/mysql-server/archive/mysql-8.0.4.tar.gz...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:99 (message):


File does not have expected hash:

File path: [ C:/Users/xxxx/Documents/vcpkg/downloads/temp/mysql-mysql-server-mysql-8.0.4.tar.gz ]
Expected hash: [ 8d9129e7670e88df14238299052a5fe6d4f3e40bf27ef7a3ca8f4f91fb40507b13463e9bd24435b34e5d06c5d056dfb259fb04e77cc251b188eea734db5642be ]
Actual hash: [ 39392eea30f1110c476f7d8d50159b16162b6dd741683f7ba2c440383fabaeef9565144285b969bce8ef2f26d2b4ce6f615256f6a61f227a80ed3ad9fa5bc3ee ]

The file may have been corrupted in transit. This can be caused by
proxies. If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY
environment variables to
"https://user:p[email protected]:port/".



Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:182 (test_hash)
scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile)
ports/libmysql/portfile.cmake:19 (vcpkg_from_github)
scripts/ports.cmake:90 (include)

Click to expand...



Now it worked to install libmysql, Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

For anyone who's still having same issue and isn't satisfied with using libmysql
Remove your vcpkg folder and then follow those steps by order it will help you getting it to work.

Code:

git clone https://github.com/Microsoft/vcpkg.git

Code:

cd vcpkg

Code:

git checkout pr-fix-libmariadb

Code:

git fetch origin pull/10043/head:pr-fix-libmariadb

Code:

.\bootstrap-vcpkg.sh

Code:

.\vcpkg integrate install

Code:

.\vcpkg install libmariadb:x64-windows

Then install the main TFS libraries
64x

Code:

.\vcpkg install boost-iostreams:x64-windows boost-asio:x64-windows boost-system:x64-windows boost-filesystem:x64-windows boost-variant:x64-windows boost-lockfree:x64-windows luajit:x64-windows libmariadb:x64-windows pugixml:x64-windows mpir:x64-windows cryptopp:x64-windows

32x

Code:

.\vcpkg install boost-iostreams:x86-windows boost-asio:x86-windows boost-system:x86-windows boost-filesystem:x86-windows boost-variant:x86-windows boost-lockfree:x86-windows luajit:x86-windows libmariadb:x86-windows pugixml:x86-windows mpir:x86-windows cryptopp:x86-windows