Diesel + MySQL + Windows


I’am new to rust and wanna write my blog system with rust.
So I choose Rocket + Diesel + MySQL.
And when I run cargo install diesel_cli,I get following:
“could not find native static library mysqlclient, perhaps an -L flag is missing?”
I run this on windows, and already installed mysql and mysqlclient.
But I can not find how to tell cargo to find the right library to link with.
Anyone else could help?


Anyone have used mysql on windows?


I just finished it tonight.
first download a mysql connecter from : https://cdn.mysql.com/archives/mysql-connector-c/mysql-connector-c-6.1.11-winx64.zip
second unzip and find mysqlclient.lib in mysql-connector-c-6.1.11-winx64\lib\vs14
third set env variable MYSQLCLIENT_LIB_DIR to point to it
then you will be install ok