You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have modified the apartment configuration to connect two different hosts. When active record get rollback. I got "MySQL client is not connected" error
/home/ubuntu/.rvm/gems/ruby-3.0.4@gemsetname/gems/mysql2-0.5.6/lib/mysql2/client.rb:151:in `_query': MySQLclientis not connected(Mysql2::Error)3.0.4:009 >
Expected behavior
Should not disconnect MYSQL connection. Should return validation message.
System configuration
vendor: Amazon EC2 (ubuntu)
product: m5.xlarge
Database: (mysql Ver 8.0.36-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)).)
Apartment version: ros-apartment (2.11.0)
Apartment config (in config/initializers/apartment.rb or so):
Steps to reproduce
I have modified the apartment configuration to connect two different hosts. When active record get rollback. I got "MySQL client is not connected" error

Expected behavior
Should not disconnect MYSQL connection. Should return validation message.
System configuration
vendor: Amazon EC2 (ubuntu)
product: m5.xlarge
Database: (mysql Ver 8.0.36-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu)).)
Apartment version: ros-apartment (2.11.0)
Apartment config (in
config/initializers/apartment.rb
or so):Rails (or ActiveRecord) version: activerecord (6.1.7.6)
Ruby version: ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
If got any solution. Kindly correct me.
The text was updated successfully, but these errors were encountered: