Closed sreenak closed 7 months ago
oh no, brew upgrade
💥 , we need to add support for MySQL 8.3
januszm Should I proceed with downgrading MySQL to an older version? Could you please specify the recommended version for compatibility?
januszm Should I proceed with downgrading MySQL to an older version? Could you please specify the recommended version for compatibility?
@sreenak Stick to 8.0 or use the mysql2
gem straight from Github (support for 8.2 is not released yet).
I need to do the same thing, Rails does not work with 8.3, at least not on M1 platform on Macs, getting other errors too.
@januszm Great Thanks for your reply, Let me try installing with 8.0 version
@januszm Very very thanks and cheers it worked for me, using mysql version 8.0. Also followed the below commands after that, if anyone stuck with same issue, hope it will be helpful for them
gem install mysql2 -- --with-openssl-dir=$(brew --prefix openssl@1.1)
bundle config --local build.mysql2 -- --with-openssl-dir=$(brew --prefix openssl@1.1)
bundle config --local build.mysql2 -- $(ruby -r rbconfig -e 'puts RbConfig::CONFIG["configure_args"]' | xargs -n1 | grep with-openssl-dir)
I am trying to install gem mysql2 in Mac M3 Pro, Ventura, ruby(3.2.2) latest version rails(7.1.2) latest and mysql latest version(8.3.0). I am getting this error when I try
rails s
. I searched almost all solutions, but I couldn't find a way to resolve this. Please helpFirst I got the below error when I try
bundle install
, this got resolved by executing thearch -x86_64 gem install mysql2 -v 0.5.5 -- --srcdir=/usr/local/mysql/include
command, but when I runrails s
its not still workingAnd someway I got it resolved after doing this command
but after running rails s Igot this error, and I didn't get any solution working to resolve this.