Can't install/start mysql server - mysql

I can't install mysql server 5.5 on Debian system.
Getting this error. I tried 5 times but same problem :(
I'm also in superuser
apt-get install mysql-server-5.5
apt-get install mysql-server mysql-client
and got the error after password setup wizard for root user.
Please help

apt-get purge mysql*
apt-get autoremove
apt-get autoclean
apt-get update
apt-get dist-upgrade
apt-get install mysql-server mysql-client
If this is not be helpful, you can try install mysql from MySQL Repository, but you must remember - in this moment server have stable version: 5.7.x!

Related

Cannot downgrade from MySQL 8.0.12 to earlier version

I've been searching around and haven't been able to find out how to downgrade my MySQL version. I've tried brew info MySQL then brew switch MySQL 5.7.21 but it says it's not in the cellar.
I followed a guide running brew install mysql#5.7 but when I check the -v it says its an unknown command.
let me know if I missed any details. this is my first time reaching out.
Using APT Repositories
Step 1: Reconfigure MySQL and choose the older version:
sudo dpkg-reconfigure mysql-apt-config
Step 2: Run apt-get update:
sudo apt-get update
Step 3: Remove the current version:
sudo apt-get remove mysql-community-server mysql-client mysql-common mysql-community-client mysql-community-client-core mysql-community-server mysql-community-server-core -y
sudo apt-get autoremove
Step 4: Install the older version (autoselected since you have reconfigured):
sudo apt-get install -y mysql-server

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

Facing issue while installing PHPMYADMIN

I am trying to install PHPMyAdmin on my Ubuntu 16 setup.
I am using this document to do so:
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04
But I am getting following error while installation:
I even try to uninstall mysql completely for which I used following steps, but it did not work.
Removing MySQL 5.5 Completely
First of all You have to remove whole phpmyadmin from your system using
sudo apt-get remove phpmyadmin mysql-server mysql-client
sudo apt-get purge phpmyadmin mysql-server
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install phpmyadmin
sudo apt-get install mysql-client mysql-server

uninstall MySQL only from LAMP install Ubuntu 15.5

I believe there is an error with my MySQL install -- which was auto installed while installing Ubuntu 15.5/LAMP. I would like to only uninstall MySQL and try again, however the usual
"sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean"
does not remove it and shows instead an option to remove the entire lamp image. How can I remove/reinstall MySQL only?

Ubuntu Mysql Uninstall / Reinstall

I have a Mysql installation I'd like to remove and reinstall, running Ubuntu 14.04 on a LAMP stack. The passwords are all messed up, phpmyadmin isn't installing correctly... I just want a restart.
the command..
sudo apt-get --purge remove mysql-server mysql-common mysql-client
is returning the following error...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I'm having a real hard time trying to figure out what to do with this.
this command...
sudo dpkg-reconfigure mysql-server-14.14
tells me...
package 'mysql-server-14.14' is not installed and no information is available
While..
mysql --version
tells me...
mysql Ver 14.14 Distrib 5.5.40, for debian-linux-gnu (x86_64) using readline 6.3
Any ideas how i can wipe this clean and restart?
thank you.
First, remove already installed mysql-server using-- sudo apt-get remove --purge mysql-server mysql-client mysql-common
Then clean all files sudo apt-get autoremove
Then install mysql-server -- sudo apt-get install -f mysql-server
Start mysql server-- sudo systemctl start mysql
Check status of mysql-server-- systemctl status mysql
Maybe strip the --?
sudo apt-get purge mysql-server mysql-common mysql-client
sudo apt-get install mysql-client mysql-server mysql-common
try to do this:
sudo apt-get install aptitude
sudo aptitude purge mysql-server mysql-common mysql-client
sudo aptitude install mysql-client mysql-server mysql-common