当前位置:网站首页>Compile and debug mysql8 with clion under MacOS x
Compile and debug mysql8 with clion under MacOS x
2022-04-23 09:41:00 【Dreamer】
Basic environment
operating system :MacOS Monterey( edition 12.2.1) M1 16GB Memory
CLion edition :CLion 2021.2.1
MySQL edition :8.0
First, make sure the system is equipped with cmake, If there is no need to follow... In advance , The author uses brew according to :brew install cmake
CLion Debug configuration
1、 obtain MySQL Source code , The author adopts from github obtain :[email protected]:mysql/mysql-server.git
2、 Create build code storage path , The author chooses to store in the source code build Under the table of contents
3、 To configure CLion Of Cmake The compiled directory of
stay CLion Of Preference -> Build,Excution,Deployment -> CMake -> Build Directory Choose to create build Catalog
4、 To configure CLion Of Cmake Compiler parameters for
Need to download one boost, The author uses
https://nchc.dl.sourceforge.net/project/boost/boost/1.73.0/boost_1_73_0.tar.bz2
-DCMAKE_BUILD_TYPE=Debug
-DWITH_BOOST=/Users/zjw/Downloads/boost_1_73_0
-DCMAKE_INSTALL_PREFIX=/Users/zjw/OpenSource/mysql-server/build
# The compilation path and installation path should be consistent
-DMYSQL_DATADIR=/Users/zjw/OpenSource/mysql-server/build/data
# Database initialization path
-DSYSCONFDIR=/Users/zjw/OpenSource/mysql-server/build
-DMYSQL_UNIX_ADDR=/Users/zjw/OpenSource/mysql-server/build/data/mysql.sock
5、 compile MySQL
Build -> Build Project
6、 Database initialization
Requirements ensure that the system has mysql Group and mysql user
cd /Users/zjw/OpenSource/mysql-server/build
./mysqld --basedir=/Users/zjw/OpenSource/mysql-server/build \
--datadir=/Users/zjw/OpenSource/mysql-server/build/data \
--initialize-insecure --user=mysql
7、 Create a data storage directory , And modify file permissions
mkdir build/data
chmod -R 777 /Users/zjw/OpenSource/mysql-server/build/data
8、 To configure mysqld Launch parameters (program arguments)
--basedir=/Users/zjw/OpenSource/mysql-server/build --datadir=/Users/zjw/OpenSource/mysql-server/build/data --user=mysql
9、 Specify the data directory (working directory)
/Users/zjw/OpenSource/mysql-server/build/data
So far, the debugging environment has been built
版权声明
本文为[Dreamer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230933336125.html
边栏推荐
- SAP debug debug for in, reduce and other complex statements
- Solving Lucas number and combination theorem
- ABAP implementation publishes restful services for external invocation example
- Cloud computing competition -- basic part of 2020 competition [task 3]
- 数据清洗 ETL 工具Kettle的安装
- Kettle实验
- PHP笔记(一):开发环境配置
- DMP engine work summary (2021, lightsaber)
- Pre parsing of JS
- SAP 101K 411k inventory change
猜你喜欢

JS DOM event

SAP CR transmission request sequence and dependency check

重载、重写、隐藏的对比

SAP excel has completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.

Kettle experiment (III)

三、6【Verilog HDL】基础知识之门级建模

Exclusive thoughts and cases of JS
![Cloud computing competition -- basic part of 2020 competition [task 3]](/img/a2/36ff5eafd18534207e6ab01422ea59.png)
Cloud computing competition -- basic part of 2020 competition [task 3]
![[reading notes] Chapter 5 conditional statements, circular statements and block statements of Verilog digital system design tutorial (with answers to thinking questions)](/img/a2/b50fadad859a050eecfa15a436e126.png)
[reading notes] Chapter 5 conditional statements, circular statements and block statements of Verilog digital system design tutorial (with answers to thinking questions)

云身份过于宽松,为攻击者打开了大门
随机推荐
ES-aggregation聚合分析
Learn FPGA (from Verilog to HLS)
重载、重写、隐藏的对比
Kettle实验
Principle of synchronized implementation
STM32 and FreeRTOS stack parsing
Emuelec compilation summary
[geek challenge 2019] havefun1
Redis 内存占满导致的 Setnx 命令执行失败
Kettle实验 转换案例
Two ways for flutter providers to share data
ABAP 7.4 SQL Window Expression
PHP notes (I): development environment configuration
ABAP publishes OData service samples from CDs view
What is monitoring intelligent playback and how to use intelligent playback to query video recording
Kettle experiment
SAP RFC_ CVI_ EI_ INBOUND_ Main BP master data creation example (Demo customer only)
Random neurons and random depth of dropout Technology
ASUS laptop can't read USB and surf the Internet after reinstalling the system
《數字電子技術基礎》3.1 門電路概述、3.2 半導體二極管門電路