build MYSQL source code Using visual studio 2017
https://dev.mysql.com/doc/refman/8.0/en/installing-source-distribution.html
xiaai cmake-3.15.6-win64-x64.msi
XIAZAI https://slproweb.com/products/Win32OpenSSL.html WIN64 版本
安装 \OpenSSL-Win64到PATH D:\mysqlsource\mysql-server-8.0_2\mysql-server-8.0\cmake\OpenSSL-Win64
设置环境变量 OPENSSL_ROOT_DIR: D:\mysqlsource\mysql-server-8.0_2\mysql-server-8.0\cmake\OpenSSL-Win64
下载 安装 BISON 安装 路径 C:\GnuWin32 ,C:\GnuWin32\bin 添加至 环境 变量 PATH
开启 vs 2015 DEVELOPER CMD
CD D:\mysqlsource\mysql-server-8.0_2\mysql-server-8.0\cmake
cmake .. -G "Visual Studio 14 2015 Win64" -DDOWNLOAD_BOOST=1 -DWITH_BOOST=boostdir -DOPENSSL_ROOT_DIR=OpenSSL-Win64 -DOPENSSL_LIBRARIES=OpenSSL-Win64/lib
--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
CD D:\mysqlsource\mysql-server-8.0_2\mysql-server-8.0\cmake\runtime_output_directory\Debug
mysqld --initialize-insecure
mysqld -u root --port=33066
https://dev.mysql.com/doc/refman/8.0/en/connecting.html
mysql --host=localhost --user=myname --password=password mydb
mysql --host=remote.example.com --port=13306
以特定的port启东MYSQL
mysqld --initialize-insecure
mysqld -u root --port=33066
D:\mysqlsource\mysql-server-8.0\mysql-server-8.0\bld\runtime_output_directory\Debug\mysql --host=localhost --user=root --password --port=33066
How can you find out which process is listening on a port on Windows?
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
如何在本地调试mysqlY源码
1,cd
4,show databases;
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
2018-01-04 hot-warm-architecture-in-elasticsearch-5-x
2017-01-04 Persistent-Memory
2017-01-04 BPF and eBPF linux
2017-01-04 linux memory