Set up MySQL#5.7 on Mac - mysql

I set up Laravel Valet on my Mac and installed mysql which is 8.* version. I have projects with Laravel 5.4 which doesn't support mysql 8.* version. How can I set up mysql 5.7 version on Mac? Preferably with homebrew.

You can install MySQL 5.7 by Homebrew with:
brew install mysql#5.7

Related

How to install MySql 8 in AWS Linux 1?

Currently, MySQL 5.5 is installed in Amazon Linux AMI 2018.03. Now I want to upgrade MySQL to the latest version 8.0 and remove old MySQL 5.5 so that I can execute SQL scripts which runs successfully on MySQL 8.
How can we upgrade to MySql 8?
Here is OS details:
$ cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
which rhel fedora version is that? So that as per OS version we can download specific MySQL rpm from MySQL server.
I would go with something like that:
yum install https://dev.mysql.com/get/mysql80-community-release-el6-3.noarch.rpm
yum update
that will install new source for mysql repo, and then you can go with:
yum install mysql-community-server

How do I use an alternative version of mysql with Ruby on Rails

My production server is running MySql 5.6.
If I use brew install on my local machine I get version 8.0, which is not compatible with data from MySql 5.6.
So I completely uninstalled mysql and ran brew install mysql#5.6 and then prepended /usr/local/opt/mysql#5.6/bin to my path.
The problem is that the rails' mysql2 gem will not function without running the standard brew install mysql because it cannot find some file.
Any suggestions of how to run with an older version of mysql?

Unable to Install mysql workbench on ubuntu 15.10

I am using Ubuntu LTS 15.10. I am unable to install mysql workbench.
I have tried all version of mysql-version but still getting this issue:

Can I use Homebrew to install MySQL 5.6.26?

I was asked to install mysql 5.6.26 using Homebrew.
I searched for some time and found Homebrew-versions. There is a mysql56 formulae, but it's 5.6.29.
Is there a way to install mysql 5.6.26 with Homebrew?
There is a way to dig through Homebrew history and install specific old version of brew formulae, as described in this answer: https://stackoverflow.com/a/4158763/1032396
However, the earliest version of MySQL in the history is 5.6.27:
https://github.com/Homebrew/homebrew-versions/commits/master/mysql56.rb
So, no, you cannot install 5.6.26 using Homebrew.

How do I add additional versions of mysql to homebrew cellar

I used homebrew to install mysql and it installed 5.6.15. I need to have some version of 5.5 installed. Currently in usr/local/Cellar I have just 5.6.15, how can I add an older version to that so I can use the 'brew switch' command to use the version I want to?
This page details how to install older versions of a formula, using Subversion as an example. In a nutshell, to get MySQL 5.5:
$ brew tap homebrew/versions
$ brew -S mysql
automysqlbackup mysql-cluster mysql-proxy
groonga-normalizer-mysql mysql-connector-c mysqlreport
mysql mysql-connector-c++
mysql++ mysql-connector-odbc
josegonzalez/php/php53-mysqlnd_ms homebrew/versions/mysql51
josegonzalez/php/php54-mysqlnd_ms homebrew/versions/mysql55
josegonzalez/php/php55-mysqlnd_ms
$ brew install mysql55