Error install mysql server shared on GNU/Linux - mysql

anyone know why i got this error...
and why i cannot install MySQl server on my VPS?
what i need to do?
i got this error :
warning: MySQL-shared-5.5.46-1.el7.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
libc.so.6(GLIBC_2.14)(64bit) is needed by MySQL-shared-5.5.46-1.el7.x86_64
rpmlib(FileDigests) <= 4.6.0-1 is needed by MySQL-shared-5.5.46-1.el7.x86_64
rpmlib(PayloadIsXz) <= 5.2-1 is needed by MySQL-shared-5.5.46-1.el7.x86_64
=========================================================
i reinstall with mysql 5.5.45 and success install mysql-client and mysql-share..
[root#ryobest tampung]# rpm -qa | grep MySQL
MySQL-shared-5.5.45-1.linux2.6
MySQL-client-5.5.45-1.linux2.6
[root#ryobest tampung]# rpm -ivh MySQL-server-5.5.45-1.linux2.6.x86_64.rpm
warning: MySQL-server-5.5.45-1.linux2.6.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
libaio.so.1()(64bit) is needed by MySQL-server-5.5.45-1.linux2.6.x86_64
libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.5.45-1.linux2.6.x86_64
libaio.so.1(LIBAIO_0.4)(64bit) is needed by MySQL-server-5.5.45-1.linux2.6.x86_64
[root#ryobest tampung]#
[root#ryobest tampung]# rpm -ivh libaio1-0.3.109-44.3.x86_64.rpm
warning: libaio1-0.3.109-44.3.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 09ca02b0
error: Failed dependencies:
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by libaio1-0.3.109-44.3.x86_64
[root#ryobest tampung]#
what must i do now? i cannot find rpm rpmlib(PayloadIsLzma) <= 4.4.6-1

You are missing dependencies that are needed by MySQL server.
You have two way to go from here:
Install the dependencies one by one and then re try installation (longer way)
Install using the yum as shown below (faster and much simpler way)
yum install mysql mysql-server
I would advice you to choose the later one if you do not have any issues with network access on your VPS, which normally not the case.

Related

Error of installing Google Chrome in Centos 7

I followed the following steps to install Chrome in my Centos 7 system.
(base) [abc#bogon ~]wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
(base) [abc#bogon ~]sudo yum install ./google-chrome-stable_current_*.rpm
All was OK, but I got the following error while I run "google-chrome &".
(base) [abc#bogon ~]$ google-chrome &
[1] 4679
(base) [abc#bogon ~]$ /usr/bin/google-chrome: symbol lookup error: /usr/bin/google-chrome: undefined symbol: gbm_bo_get_modifier
I could not launch Chrome. How can I fix this error? Thanks.
This is due to a missing symbol in the libgbm library. You will likely need to update the mesa-libgbm package to a later version.
sudo apt update mesa-libgbm
sudo yum update mesa-libgbm
Or the equivalent for your OS.

issue with python-mysql library with in Docker

We have a peculiar situation. I have inherited some source code from the people who left the company.
in docker file they are installing the mysql driver via
apt-get install -y python3-pip sshpass python-mysqldb
and the container is running successfully, recentlhy after we upgraded mysql verskion to 8.x. we starred getting exception
Exception message: (2026, 'SSL connection error: unknown error number')
I tried to upgrade the python-msql
apt-get upgrade python-mysql
I always get the message
root#ad27eb3de17d:~# apt upgrade python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
**python-mysqldb is already the newest version (1.3.7-1build2).**
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
wget
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
but we are still getting the same error message. please help what component do I need to upgrade?
we are using
root#ad27eb3de17d:~# python3 --version
Python 3.5.2
``

Cannot install mysql server on Debian 11

I have installed MySQL APT Repository on my OS, then tried to execute the following command:
sudo apt update
sudo apt install mysql-server
It shows me these errors:
$ sudo apt install mysqL-server
Reading package lists.. Done
Building dependency tree.. Done
Reading state information.. Done
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:
mariadb-client-core-10.5 : Conflicts: virtual-mysql-client-core
mariadb-server-core-10.5 : Conflicts: virtual-mysql-server-core
E: Error, pkgProblemResolver: :Resolve generated breaks, this may be caused by held
packages
I have never installed mariadb on my device. Why is this error reported? I need to install mysql server on my device.
Please help me.
remove mariadb with
apt remove mariadb-common
then install mysql did it for me

MySQL atomic library missing error during MyChem installation using cmake

I'm trying to install a tool (MyChem) using cmake on our Ubuntu EC2 instance, the tool I'm installing should utilize mysql so I installed it first. But when I tried to install the tool its says mysql atomic library is missing. What is atomic library? Anybody knows why or how to solve this?
I installed mysql first as follows:
$ sudo apt upgrade
$ sudo apt-get install build-essential
$ sudo apt-get install mysql-server mysql-client
$ sudo apt-get install libmysqlclient-dev
And the followings are the error messages:
$ cmake ..
-- The build type is RelWithDebInfo
-- Test module disabled
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Using mysql-config: /usr/bin/mysql_config
-- MySQL Version: 5.7.29
-- MySQL Plugin Dir: /usr/lib/mysql/plugin
-- Found MySQL 5.7.29: /usr/include/mysql, /usr/lib/x86_64-linux-gnu/libmysqlclient.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;MYSQL_LIBRARIES_atomic-NOTFOUND;/usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so;/usr/lib/x86_64-linux-gnu/libdl.so
-- Mychem installation directory: /usr/lib/mysql/plugin
-- Defining dlhandler source files
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MYSQL_LIBRARIES_atomic
linked by target "mychem-lib" in directory /home/ubuntu/mychem-1.0.0/src
linked by target "modification_test" in directory /home/ubuntu/mychem-1.0.0/tests
...
-- Configuring incomplete, errors occurred!
From above, around in the middle, you should be able to see the error messages such as MYSQL_LIBRARIES_atomic-NOTFOUND and also
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MYSQL_LIBRARIES_atomic
at the bottom.

Install Apache on Debian VPS & unmet dependencies error

I have a VPS and it runs on Debian GNU/Linux 8 (jessie). I try to install Apache, PHP, and MySQL on it. I get the below error:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
When I run apt-get -f install, i get below error:
Preconfiguring packages ...
(Reading database ... 39521 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have basic knowledge of Linux, so any suggestion or help. I search online and try to uninstall and remove and reinstall MySQL... but no luck.
from you error output i did a quick apt-cache search to see the version numbers of mysql-server
from what i seen you might have installed mariadb-server-10.0 installed instead of mysql-server
do a dpkg -l | grep mysql and look at the results. you could also try dpkg -l | grep server and look at that output also.
ADDED COMMENT-
did you remove the file that it's asking you to do?
if you need to have both db-servers running i would follow along with this
https://superuser.com/questions/1029228/mysql-and-mariadb-instances-on-the-same-server
if you don't need both dbs, then i would apt-get remove mariadb-.. from your server and then apt-get -f install to get mysql-server installed