Uninstall MySQL completely from Ubuntu [closed] - mysql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have trouble uninstalling MySQL from Ubuntu. I used the following commands, it doesn't seem to help as I still find the MySQL folder in /etc directory
aptitude remove mysql-client
aptitude remove mysql-server
aptitude remove mysql-common
Please suggest a good way to uninstall it completely and any command to check if the uninstallation was successful. Thank you!

sudo apt-get remove --purge mysql-client mysql-server

Related

does anyone knows how to install mysql on ubuntu ec2 instance [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
i tried it several times but there are always an error can anyone give me the codes which I can run and try based on apt-get tool
Install MySQL
sudo apt-get update
sudo apt-get install mysql-server
During the installation you will be prompt for a root password.
Configure MySQL
sudo mysql_secure_installation
Test your MySQL installation
mysqladmin -p -u root version
Or you can use an image that has MySQL pre installed and configured for you.
MySQL powered by Bitnami

Ubuntu: I can't run mysql properly or even reinstall it [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I tried to use mysql but i found that it was broken so i tried to remove it by using the apt-get remove mysql* and it output a message to me: Try using apt-get -f install i tried it and i got this error:
/var/cache/apt/archives/mysql-server-5.6_5.6.28-0ubuntu0.15.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any ideas?
Try these:
sudo service mysql stop #or mysqld
sudo killall -9 mysql
sudo killall -9 mysqld
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser mysql
sudo rm -rf /var/lib/mysql
sudo apt-get purge mysql-server-core-5.5
sudo apt-get purge mysql-client-core-5.5
sudo rm -rf /var/log/mysql
sudo rm -rf /etc/mysql
Removing MySQL 5.5 Completely
And then reinstall
EDIT:
This page also seems to deal with issues similar: http://ubuntuforums.org/showthread.php?t=1229506

I can't unistall mysql on ubuntu 12.10 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I unistalled mysql-server from my ubuntu 12.10 machine, but if I type "mysql" on shell it prompts me the command line of a possible another mysql instance.
I want to remove it completely.
I tried this command: sudo apt-get remove mysql-server php5-mysql and
sudo apt-get remove --purge mysql-client mysql-server
They run ok like it was unistalled everything about mysql.But as I said, if I type mysql on shell it prompts me mysql command line.
Please, I need help.
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo rm -rf /var/lib/mysql
Run remove --purge on all the packages including common as shown above, and then remove the /var/lib/mysql folder.
That should do it.
When you have mysql fully installed on a system, it includes both the server (mysqld) and the client (/usr/local/bin/mysql or similar).
Therefore you have to remove the client as well as the server in order to get rid of what runs when you type 'mysql' on the command line.
sudo apt-get remove --purge mysql-client

Can't use "which mysql" in zsh, but in bash work [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
After Upgrade to Ubuntu 12.04 LTS, and install mysql server 5.5, I Can't use "which mysql" in zsh, but in bash work!!
Here is my echos:
ZSH:
$ whereis mysql
mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.g
$ which mysql
mysql: aliased to nocorrect mysql
$ alias
...
...
mysql='nocorrect mysql'
...
...
BASH:
$ whereis mysql
mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.g
$ which mysql
/usr/bin/mysql

Is there a way to only install the mysql client (Linux)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
The community reviewed whether to reopen this question 6 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Are there are any Linux mysql command line tools that don't require the entire mysql db installation package to be installed?
What I'm trying to do is from server #1 (app server), execute mysql commands that will get executed on server #2 (db server). I do not want to run the db on the local server or to install the full blown mysql db.
To install only mysql (client) you should execute
yum install mysql
To install mysql client and mysql server:
yum install mysql mysql-server
at a guess:
sudo apt-get install mysql-client
[root#localhost administrador]# yum search mysql | grep client
community-mysql.i686 : MySQL client programs and shared libraries
: client
community-mysql-libs.i686 : The shared libraries required for MySQL clients
root-sql-mysql.i686 : MySQL client plugin for ROOT
mariadb-libs.i686 : The shared libraries required for MariaDB/MySQL clients
[root#localhost administrador]# yum install -y community-mysql
Maybe try this:
yum -y groupinstall "MYSQL Database Client"
sudo apt-get install mysql-client-core-5.5
If mysql-client is not available, you may use mariadb-client:
sudo apt-get install mariadb-client
there are two ways to install mysql client on centOS.
1. First method (download rpm package)
download rpm package from mysql website https://downloads.mysql.com/archives/community/
if you download this rpm package like picture, it's filename like mysql-community-client-8.0.21-1.el8.x86_64.rpm.
then execute sudo rpm -ivh --nodeps --force mysql-community-client-8.0.21-1.el8.x86_64.rpm can install the rpm package the parameters -ivh means install, print output, don't verify and check.
if raise error, maybe version conflict, you can execute rpm -pa | grep mysql to find conflicting package, then execute rpm -e --nodeps <package name> to remove them, and install once more.
finnaly, you can execute which mysql, it's success if print /usr/bin/mysql.
2.Second method (Set repo of yum)
Please refer to this official website:
MySQL Yum Repository
A Quick Guide to Using the MySQL Yum Repository
When I now just use the command: mysql
I get:
Command 'mysql' not found, but can be installed with:
sudo apt install mysql-client-core-8.0 # version 8.0.22-0ubuntu0.20.04.2, or
sudo apt install mariadb-client-core-10.3 # version 1:10.3.25-0ubuntu0.20.04.1
Very helpfull.