No package msyql-server available - mysql

I'm trying to set up MySQL on an Amazon Linux instance, I've tried everything (and with the -y option as well):
$ sudo yum install mysql-server
$ sudo yum install mysql56-server
$ sudo yum install mysql-community-server
I keep getting the "No package msqql-server available", "No package msyql56-server available", etc...
I've also ran yum clean all, yum update all, etc...
I'm assuming I have to install the RPM, but I don't know what version to install and while there is documentation for CentOS, there is little documentation specifically for Amazon Linux for setting up MySQL.
And these instructions didn't work as I got the error message "No package mysql56-server available" https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html

This worked:
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
sudo yum localinstall mysql57-community-release-el7-8.noarch.rpm
sudo yum install mysql-community-server

UPDATE for 2022:
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
sudo yum localinstall mysql57-community-release-el7-8.noarch.rpm
sudo yum install mysql-community-server
service mysqld start
ref:
https://support.cpanel.net/hc/en-us/articles/4419382481815?input_string=gpg+keys+problem+with+mysql+5.7

Related

Error in installing mysql on centos7 (No package mysql-community-server available)

I tried to install mysql on centos-7 for first time, and I did these steps
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
sudo yum install mysql-community-server
when I reach the step two I got this error
Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: mirrors.ges.net.pk* epel: mirror.hostnet.nl* extras: mirror.natro.com* updates: mirror.radoreservers.comNo package mysql-community-server available.Error: Nothing to do
1: wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2: rpm -ivh mysql-community-release-el7-5.noarch.rpm
3: yum install -y mysql-community-server

Unable to install Mysql community server on Debian 10

Hi I am unable to install mysql 8 on my newly installed Debian 10 machine.
Here is what I did:
$ cd /tmp
$ wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
$ sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb
After this ran
$ sudo apt update
$ sudp apt install mysql-server
I am getting the bellow error:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-community-server (= 8.0.18-1debian10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Not sure if dependencies are available in debian 10 repo.
Try your luck with installing the dependencies with
sudo apt update
sudo apt install -f

how to install pyaudio module in google cloud shell?

Error:
raise AttributeError("Could not find PyAudio; check installation")
AttributeError: Could not find PyAudio; check installation
I tried all of these commands:
sudo pip install pyaudio,
sudo apt-get install python-pyaudio ,
sudo pip install pyaudio ,
sudo pip install --upgrade pyaudio.
First, undo what you have done.
Then try to install it following their documentation for Debian based versions:
$ sudo apt install portaudio19-dev python-all-dev
followed by
$ sudo apt install python-pyaudio for python 2 version
OR
$ sudo apt install python-pyaudio for python 3 version.

unable to install mysql on ubuntu 16.04

I ran the following command
wget http://repo.mysql.com/mysql-apt-config_0.8.9-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb
sudo apt-get update
all goes well but when i hit
sudo apt-get install mysql-server
It gives me following errors
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created or
been moved out of Incoming. The following information may help to
resolve the situation:
The following packages have unmet dependencies: mysql-server :
Depends: mysql-community-server (= 5.7.20-1ubuntu16.04) but it is not
going to be installed E: Unable to correct problems, you have held
broken packages.
To fix broken packages i did ran
sudo apt-get install -f
sudo apt autoremove
sudo apt-get update
but all in vain. Thanks to you guys in advance :)
To begin with, I deleted MySQL with:
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean
Then I downloaded the .deb from oficial page and used the following commands:
curl -OL https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.deb
sudo dpkg -i mysql-apt-config*
sudo apt update
sudo apt install mysql-server -y
At this point I had trouble because of Ubuntu eoan "incompability" (I'm using Ubuntu 19.10), displaying a message like: "The detected system (Debian jessie) is not supported by MySQL. If you believe the platform is compatible with one of the supported systems, one of the corresponding repositories may be selected". But I researched in MySQL bugs page and ran:
dpkg -i mysql-apt-config_0.8.13-1_all.deb
sudo apt update
sudo apt install mysql-server -y
When it finishes, you may check the installation with:
sudo systemctl status mysql.service
And you should see something like...
This worked for me, after trying solutions in StackExchange, none of which worked. I hope this helps! Looking for feedback if I did something wrong, thanks.
try to install mysql server with the version.
sudo apt-get update
sudo apt-get install mysql-server-5.6

Compiler error mysql.h not found

On compiling a software I get this error
mysql/mysql.h: No such file or directory
result of running mysql_config --include is
-I/usr/local/mysql/include
How can I get mysql.h to be detected?
Install mysql development packages on Debian/ubuntu.
sudo apt-get install libmysqld-dev
on CentOs/Redhat (to know who provide - yum provides mysql/mysql.h):
sudo yum install mysql-devel
While building Kamailio from sources on CentOS / Fedora, I encountered mysql/mysql.h: No such file or directory
Since my target was MariaDB, installing mariadb-devel package helped
# yum -y install mariadb-devel
Before installing above package, it was necessary for me to clean-up previously installed MariaDB-client package.
# yum remove MariaDB-client
# yum remove MariaDB-common
# mv /etc/yum.repos.d/mariadb.repo /etc/yum.repos.d/mariadb.repo.bak
If necessary we can get back the original MariaDB-client package after the build process, such as
# mv /etc/yum.repos.d/mariadb.repo.bak /etc/yum.repos.d/mariadb.repo
# yum -y install MariaDB-client