[MDEV-20130] Lost connection to MySQL server at 'reading authorization packet' Created: 2019-07-23  Updated: 2019-08-04  Resolved: 2019-08-04

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.3.15
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Christian Lehner Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Raspberry Pi, Rasbian, Buster



 Description   

I changed from RPI Stretch to Buster and now get the following error when I try to initially connect to the database:

(a) when I connect from Buster to a DB on a Stretch OS:
mysql error '2013' - Lost connection to MySQL server at 'reading authorization packet', system error: 11

(b) when I connect to the local database on a Buster OS:
mysql error '2013' - Lost connection to MySQL server at 'reading authorization packet', system error: 104

This is from code which looks like:
::mysql_options(state, MYSQL_READ_DEFAULT_GROUP, app_name.c_str());
connection = ::mysql_real_connect(state, host.c_str(), user.c_str(), pass.c_str(), db_name.c_str(), 0, 0, 0);
log_last_error();

It worked as long as I compiled and run it on Rasbian, Stretch but since I moved to Buster, I get this error. I found some pointers on the web which claim it had to do with too short a timeout, but increasing connect_timeout did not help.



 Comments   
Comment by Christian Lehner [ 2019-08-02 ]

I can't reproduce this issue. Most likely this was fixed by updates.

Generated at Thu Feb 08 08:57:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.