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
Related
I am trying install MySQL 8 or 5.7 in my machine , But facing this issue with this
No package mysql-server available sometimes.
If I try this sudo yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
I am getting like this Examining /var/tmp/yum-root-gqFfuQ/mysql57-community-release-el7-9.noarch.rpm: mysql57-community-release-el7-9.noarch
can any one suggest me that way to install MySQL 8 or 5.7 in my system , System details listed below
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/"
Thanks.
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
I need to obtain the functionality of MySQL 5.7. I had zend server 9 (first 9 version). After reinstallation of zend server (it doesn't supports upgrade).
- Result: MySQL 5.5 !
May there exist solutions for:
Upgrade mysql inside zend framework?
Install other apache2.4+mysql5.7+php7 developer server?
some other solution.
Requirements:
PHP7.0.8 or later
MySQL 5.7
Apache 2.4 or later
Uninstall your existing version of mysql and install mysql 5.7
mysql.server stop # kill the running process
brew uninstall mysql # uninstall mysql
brew update # update brew
brew install mysql#5.7 # install mysql 5.7
Now you can start mysql.server with /usr/local/opt/mysql#5.7/bin/mysql.server start
Modify your PATH variable in ~/.bash_profile so you can start it with just mysql.server start
# ~/.bash_profile
export PATH="/usr/local/opt/mysql#5.7/bin:$PATH"
mysql.com offers a automatic dmg installer, which I find I have the most success with. It typically installs in /usr/local/mysql so you may want to try deleting any other installations you have on your system first.
You can download it here:
https://dev.mysql.com/downloads/mysql/
As for apache and php I find that I typically stick with the ones preloaded into os x, you can There are a number of articles out there on how to active these, but I believe its just a matter of uncommenting the php LoadModule line in /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
and then starting apache in terminal with the apachectl command.
I installed https://dbngin.com/
Then after that i went to /usr/local
Then I saw a folder name for each of the MySQL versions I had installed using dbngin
Then after that I added it to path. Then that was it.
echo 'export PATH="/usr/local/path-to-mysql/bin:$PATH"' >> ~/.zshrc
You know, after MySQL is uninstalled and reinstalled via homebrew, it will prompt: 1. Upgrade to macOS 10.13; 2. Upgrade to Xcode 9.2.
If you don't want to upgrade the system or Xcode version, then request the MySQL official website to download:
https://downloads.mysql.com/archives/community/
The MySQL version suitable for macOS 10.12 ranges from 5.7.17 to 5.7.23.
In my case I am trying
mysql --version
so it is showing
mysql Ver 15.1 Distrib 5.5.35-MariaDB, for Linux (x86_64) using readline 5.1
but when I am giving
service mysql status
It showing path is not available,please help to find out mysql server is installed or not in particular linux machine.
You need to check existense of binaries:
mysql (which mysql) if you need to check client existence
mysqld (which mysqld_safe or which mysqld) if you need to check server existence
On debian it could be done using dpkg:
dpkg -s mysql-server
returns
Package: mysql-server
Status: install ok installed
[...]
or
dpkg-query: package 'mysql-server' is not installed and no information is available
same for mysql-client
Try this simple step if you are using Ubantu OS.
Go to search>> Ubantu software center(type in search)>>Installed(click)>>Developer Tools(click)(then it will show that mysql software is installed or not)
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