https://dev.mysql.com/doc/refman/8.0/en/installing-source-distribution.htmlhtml
cmake .. -G "Visual Studio 14 2015 Win64" -DDOWNLOAD_BOOST=1 -DWITH_BOOST=boostdir -DOPENSSL_ROOT_DIR=OpenSSL-Win64 -DOPENSSL_LIBRARIES=OpenSSL-Win64/libmysql
--defaults-extra-file=D:\mysqlsource\mysql-server-8.0\mysql-server-8.0\bld\sql\my.ini --user=mysql --datadir=D:\mysqlsource\mysql-server-8.0\mysql-server-8.0\bld\sql\data web
https://dev.mysql.com/doc/refman/8.0/en/connecting.htmlsql
mysql --host=localhost --user=myname --password=password mydbwindows
mysql --host=remote.example.com --port=13306spa
以特定的port啓東MYSQLcode
mysqld -u root --port=33066server
D:\mysqlsource\mysql-server-8.0\mysql-server-8.0\bld\runtime_output_directory\Debug\mysql --host=localhost --user=root --password --port=33066htm
How can you find out which process is listening on a port on Windows?token
netstat -a -b
https://www.cloudinsidr.com/content/how-to-install-the-most-recent-version-of-openssl-on-windows-10-in-64-bit/
https://slproweb.com/products/Win32OpenSSL.html
It is a common misunderstanding: CMake does not need environment variables to know where the library and include dir are but CMake variables.
Since CMake can not find your OpenSSL lib and include directory, you will have to manually tell him where they are with its command line when you call it. Use the option -D
to set constants in CMake from the command line. You will need to set the constants OPENSSL_ROOT_DIR
and OPENSSL_LIBRARIES
since they are the one triggering the error.
cmake -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_LIBRARIES=/usr/local/ssl/lib