Ubuntu Mysql Uninstall / Reinstall - mysql

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

Related

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

Cannot start Mysql-server Service

I have an issue, I can not start mysql service and how to configure mysql-server. I forgot password and username for mysql-server.
Excuse me for my weak English.
screenshot-issue
If your case is just forgot password see then doc here .
Or remove mysql then reinstall may solve your problem.
Remove mysql:
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
Reinstall:
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
And just check your disk isn't full.

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

Can't install/start mysql server

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!

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?