Facing issue while installing PHPMYADMIN - mysql

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

Related

mysql server connection setup with phpmyadmin

I installed mysql-server on Debian. And also installed lampp on Debian. But in order to run lampp and properly working of phpmyadmin I have to stop my mysql-server running on Debian. This creates two different mysql servers. One belonging to phpmyadmin and one belonging to mysql running locally. Is there any way, so that both phpmyadmin and mysql-server run on same port?
You cant run both mysql servers on same port. The best way is to remove Both MySql and Lamp stack then reinstalling it again.
1.)remove mysql and lamp stack:-
sudo apt-get remove --purge mysql-server.* apache2* php* phpmyadmin*
sudo apt-get auto-remove
2.)install lamp stack
sudo apt-get update
sudo apt-get install
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5 php-pear php5-mysql
sudo service apache2 restart
sudo apt-get install phpmyadmin
then you are ready to code!

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

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?

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