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

推荐订阅源

Project Zero
Project Zero
F
Fortinet All Blogs
Recent Announcements
Recent Announcements
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
T
Tailwind CSS Blog
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
S
Schneier on Security
N
News and Events Feed by Topic
N
News | PayPal Newsroom
H
Help Net Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
The Exploit Database - CXSecurity.com
Attack and Defense Labs
Attack and Defense Labs
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
A
About on SuperTechFans
AWS News Blog
AWS News Blog
S
Secure Thoughts
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
C
Cybersecurity and Infrastructure Security Agency CISA
V2EX - 技术
V2EX - 技术
Recorded Future
Recorded Future
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
MyScale Blog
MyScale Blog
Martin Fowler
Martin Fowler
Help Net Security
Help Net Security
人人都是产品经理
人人都是产品经理
Latest news
Latest news
C
Cyber Attacks, Cyber Crime and Cyber Security
大猫的无限游戏
大猫的无限游戏
The Last Watchdog
The Last Watchdog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
月光博客
月光博客
H
Hacker News: Front Page
P
Proofpoint News Feed
N
News and Events Feed by Topic
H
Heimdal Security Blog
L
Lohrmann on Cybersecurity
有赞技术团队
有赞技术团队
L
LangChain Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog

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.