首先需要本地编译,启用debug:
curl -o mysql-server-8.0.zip https://codeload.github.com/mysql/mysql-server/zip/refs/heads/8.0
mkdir /opt/source/mysql-server-8.0
unzip -d /opt/source/mysql-server-8.0 mysql-server-8.0.zip
cd /opt/source/mysql-server-8.0/
mkdir bld
cd bld
cmake -DWITH_DEBUG=ON -DWITH_BOOST=/opt/source/boost_1_73_0 -DWITH_SSL=/usr/local/Cellar/openssl@1.1/1.1.1k/ -DADD_GDB_INDEX=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_ARCHIVE_STORAGE_ENGINE=0 -DWITH_FEDERATED_STORAGE_ENGINE=0 -DSYSCONFDIR=/opt/app/mysql8/ ..
make
mysqld.exe!Per_thread_connection_handler::add_connection(Channel_info * channel_info) Line 394
at D:\opt\source\mysql-server\sql\conn_handler\connection_handler_per_thread.cc(394)
mysqld.exe!Connection_handler_manager::process_new_connection(Channel_info * channel_info) Line 259
at D:\opt\source\mysql-server\sql\conn_handler\connection_handler_manager.cc(259)
mysqld.exe!Connection_acceptor<Mysqld_socket_listener>::connection_event_loop() Line 66
at D:\opt\source\mysql-server\sql\conn_handler\connection_acceptor.h(66)
mysqld.exe!socket_conn_event_handler(void * arg) Line 3228
at D:\opt\source\mysql-server\sql\mysqld.cc(3228)
mysqld.exe!pfs_spawn_thread(void * arg) Line 2949
at D:\opt\source\mysql-server\storage\perfschema\pfs.cc(2949)
mysqld.exe!win_thread_start(void * p) Line 73
at D:\opt\source\mysql-server\mysys\my_thread.cc(73)
[External Code]
(70 words)