Errror on failure is empty
Posted by:
Igor Korot
Date: November 23, 2024 02:41PM
Hi, ALL,
Trying the following code:
m_db = mysql_init( m_db );
if( !m_db )
{
}
else
{
m_db = mysql_real_connect( m_db, m_pimpl->m_myconv.to_bytes( m_pimpl->m_host.c_str() ).c_str(), m_pimpl->m_myconv.to_bytes( m_pimpl->m_user.c_str() ).c_str(), m_pimpl->m_myconv.to_bytes( m_pimpl->m_password.c_str() ).c_str(), m_pimpl->m_myconv.to_bytes( m_pimpl->m_dbName.c_str() ).c_str(), m_port, m_pimpl->m_socket == L"" ? NULL : m_pimpl->m_myconv.to_bytes( m_pimpl->m_socket.c_str() ).c_str(), m_flags );
if( !m_db )
{
auto e = mysql_error( m_db );
}
}
When executing I don't have a successful connection, but the "e" does not contain anything.
mySQL 8 is running on Linux machine and I'm trying to connect from Windows.
Is this a bug?
Thank you.
Subject
Views
Written By
Posted
Errror on failure is empty
430
November 23, 2024 02:41PM
Sorry, you can't reply to this topic. It has been closed.
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.