惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
S
Securelist
H
Heimdal Security Blog
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
人人都是产品经理
人人都是产品经理
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Engineering at Meta
Engineering at Meta
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
P
Proofpoint News Feed
Google Online Security Blog
Google Online Security Blog
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
G
GRAHAM CLULEY
Apple Machine Learning Research
Apple Machine Learning Research
TaoSecurity Blog
TaoSecurity Blog
S
Security @ Cisco Blogs
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Jina AI
Jina AI
S
Secure Thoughts
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 最新话题
T
Tenable Blog
Latest news
Latest news
I
InfoQ

MySQL Forums

MySQL :: MySQL Community Governance Model Announcing June 2026 Releases featuring MySQL Server 9.7.1 and 8.4.10 GoHighLevel Webhook Data in MySQL I'm troubleshooting MySQL query performance (no replies) What could cause .frm and .ibd mismatches across multiple tables? Problem with creating a connection to a remote database on local network Best MySQL schema for storing image processing jobs? APT Repository not working on Ubuntu 26.04 How do you create a remote connection to a database (no replies) MySQL :: storing and reading blob ODBC Connector almost always alters it's name and path MySQL :: Connector/Windows MySQL :: Clientless connection with PS MySQL :: Database wont start Mysql community edition upgrade from 8.0.36 to 8.4 (LTS) (1 reply) Optimizing InnoDB for high-concurrency REST API traffic MySQL :: MySQL Replication issue MySQL :: QUESTION ABOUT FOREIGN KEY MySQL Workbench Closes when connecting database Optimizing InnoDB for high-frequency concurrent API status updates? MySQL :: Asking for a password Who designed this all but useless tool? MySQL :: MySQL Workbench Announcing April 2026 Releases featuring MySQL Server 9.7.0, 8.4.9 and 8.0.46 MySQL community repo missing package tar.gz package for Debian 13 MySQL Workbench for Ubuntu 26.04 What are the three arguments expected by this script (build_deps.sh)? MySQL :: NO_PUBKEY 9D769D5183E7DDC8 Two tables with bidirectional relationships MySQL :: MYSQL 8.4.8 CE - Group Replication MySQL 9.7.0 EA now available How can I implement MySQL connection pooling in a Python Flask or Django application? (1 reply) Tips for Optimizing MySQL Queries for Beginners MySQL :: AWS Ubuntu / MariaDB MySQL :: Alter table variable value Workbench running as background task after start, connect, exit (no replies) MacBook compatbility? (no replies) Announcing January 2026 Releases featuring MySQL Server 9.6.0 Innovation, 8.4.8 LTS and 8.0.45 Announcing October 2025 Releases featuring MySQL Server 9.5.0 Innovation, 8.4.7 LTS and 8.0.44 Announcing July 2025 Releases featuring MySQL Server 9.4.0 Innovation, 8.4.6 LTS and 8.0.43 Announcing April 2025 Releases featuring MySQL Server 9.3.0 Innovation, 8.4.5 LTS and 8.0.42 Announcing January 2025 Releases featuring MySQL Server 9.2.0 Innovation, 8.4.4 LTS and 8.0.41 MySQL Shell for VS Code 1.17.1 has been released Announcing October 2024 Releases featuring MySQL Server 9.1.0 Innovation, 8.4.3 LTS and 8.0.40 Announcing July 2024 off-cycle Releases featuring MySQL Server 9.0.1 Innovation, 8.4.2 LTS and 8.0.39 Announcing July 2024 Releases featuring MySQL Server 9.0.0 Innovation, 8.4.1 LTS and 8.0.38 Announcing April 2024 Releases featuring MySQL 8.4.0 and 8.0.37 Announcing a new webcast video that completes a deep dive into how to download and use Enterprise Manager for MySQL Announcing January 2024 Releases featuring MySQL 8.3.0 and 8.0.36 Announcing October 2023 Releases featuring MySQL 8.2.0 and 8.0.35 Announcing July 2023 Releases featuring MySQL 8.1.0 and 8.0.34 Announcing April 2023 Releases featuring MySQL 8.0.33 Announcing January 2023 Releases featuring MySQL 8.0.32 Announcing October 2022 Releases featuring MySQL 8.0.31 Announcing July 2022 Releases featuring MySQL 8.0.30 : MySQL 8.0.29: Release Notes MySQL Workbench 8.0.24 has been released MySQL Cluster 8.0.24 has been released MySQL Connector/J 8.0.24 has been released MySQL Shell 8.0.24 for MySQL Server 8.0 and 5.7 has been released MySQL Connector/NET 8.0.24 has been released MySQL Connector/Node.js 8.0.24 has been released MySQL Connector/C++ 8.0.24 has been released MySQL Connector/ODBC 8.0.24 has been released MySQL Router 8.0.24 for MySQL Server 8.0 and 5.7 has been released
: connect --ssl-mode:REQURED< : MYSQL_OPT_SSL_MODE
Jorge Luis B · 2026-05-02 · via MySQL Forums

connect --ssl-mode:REQURED< : MYSQL_OPT_SSL_MODE


Hello everyone, my name is Jorge. I work with the Xbase++ language and use the MySQL libmysql.dll library version 8.0.44.
The issue I’m having is that I can’t correctly set the options to connect to a database with SSL enabled.
From the command line it works perfectly with:
mysql -h <ip> -P 3306 -u <user> -p --ssl-mode=REQUIRED
However, in my application I execute the following steps and I can’t get it to connect:

MYSQL_OPT_SSL_MODE I searched for it on Google because in xbase I don't have the possibility of accessing the structures of mysql.h and mysql_com.h
#define MYSQL_OPT_SSL_MODE 129

nFlag := 0
cSocket := ''
nPort := 3306
pMySql := mysql_init()

nMode := U2Bin( 2 ) // "REQUIRED"
mysql_options( pMySql, MYSQL_OPT_SSL_MODE, @nMode )

mysql_real_connect( @pMysql, @cServer, @cUser, @cPassword, NIL, @nPort, @cSocket, @nFlag )

I also tried setting the call to mysql_ssl_set( @pMySql ) before mysql_real_connect(), and combining it with the parameter nFlag := CLIENT_SSL (value 2048), but without success.
Could you help me understand what the correct steps are to configure SSL in this scenario and get the connection to work the same way as from the mysql.exe client with --ssl-mode=REQUIRED?
Thank you very much for your time and any guidance you can provide!


Subject

Views

Written By

Posted

connect --ssl-mode:REQURED< : MYSQL_OPT_SSL_MODE

55

May 02, 2026 08:57AM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.