How to fully remove MySQL and phpMyAdmin
up vote
0
down vote
favorite
I am sorry if this has been posted before. I have been learning the use of MySQL and phpMyAdmin. Having followed an installation guide during an instructional course, I installed the above applications. However, the root user and password for the association between them seems to be incorrect.
I have tried removing and reinstalling, but this issue seems to follow on after the install as if there was a saved file or table containing old information regarding the previous install. Is there a way of fully removing both and all associated tables and files without having to resort to anything too drastic.
Thanks.
server apache2 mysql phpmyadmin
add a comment |
up vote
0
down vote
favorite
I am sorry if this has been posted before. I have been learning the use of MySQL and phpMyAdmin. Having followed an installation guide during an instructional course, I installed the above applications. However, the root user and password for the association between them seems to be incorrect.
I have tried removing and reinstalling, but this issue seems to follow on after the install as if there was a saved file or table containing old information regarding the previous install. Is there a way of fully removing both and all associated tables and files without having to resort to anything too drastic.
Thanks.
server apache2 mysql phpmyadmin
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am sorry if this has been posted before. I have been learning the use of MySQL and phpMyAdmin. Having followed an installation guide during an instructional course, I installed the above applications. However, the root user and password for the association between them seems to be incorrect.
I have tried removing and reinstalling, but this issue seems to follow on after the install as if there was a saved file or table containing old information regarding the previous install. Is there a way of fully removing both and all associated tables and files without having to resort to anything too drastic.
Thanks.
server apache2 mysql phpmyadmin
I am sorry if this has been posted before. I have been learning the use of MySQL and phpMyAdmin. Having followed an installation guide during an instructional course, I installed the above applications. However, the root user and password for the association between them seems to be incorrect.
I have tried removing and reinstalling, but this issue seems to follow on after the install as if there was a saved file or table containing old information regarding the previous install. Is there a way of fully removing both and all associated tables and files without having to resort to anything too drastic.
Thanks.
server apache2 mysql phpmyadmin
server apache2 mysql phpmyadmin
edited Nov 19 at 13:09
Zanna
49.1k13123234
49.1k13123234
asked Nov 19 at 10:37
Gareth Jones
32
32
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
0
down vote
accepted
You can fully remove MySQL and phpMyAdmin by doing the following:
Open your terminal (CTRL+ALT+T) and log in as root:
sudo su
Stop all MySql services that may still be running:
service mysql stop
Remove mysql and all its folders and files:
apt-get remove --purge mysql*
apt-get remove --purge mysql-server mysql-client mysql-common -y
apt-get autoremove -y
apt-get remove dbconfig-mysql
rm -rf /etc/mysql /var/lib/mysql
find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin:
apt-get purge phpmyadmin
Autoremove and clean all dependencies:
apt-get autoremove
sudo apt-get autoclean
1
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
add a comment |
up vote
1
down vote
Remove MySQL
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Remove MySQL folders
sudo rm -rf /etc/mysql /var/lib/mysql
Delete all MySQL files from File System
sudo find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin
sudo apt-get purge phpmyadmin
Cleanup system (dependences)
sudo apt-get autoremove
sudo apt-get autoclean
add a comment |
up vote
0
down vote
If that was a production server, removing everything wouldn't be a solution. Probably your problem is related to the debian-sys-maint
MySQL user - its password or its privileges. The correct solution for this issue is provided in this answer on Stack Overflow:
That’s because Debian has a MySQL account
debian-sys-maint
used for switching on/off and checking status. The password for that user
should be the same as stored in/etc/mysql/debian.cnf
. The file
looks like this:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
If the password doesn't match (for example because you changed it manually) the init script won't work anymore. You should set the
password according to the file. So
mysql -u root -p
# Then type MySQL root password
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>';
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
You can fully remove MySQL and phpMyAdmin by doing the following:
Open your terminal (CTRL+ALT+T) and log in as root:
sudo su
Stop all MySql services that may still be running:
service mysql stop
Remove mysql and all its folders and files:
apt-get remove --purge mysql*
apt-get remove --purge mysql-server mysql-client mysql-common -y
apt-get autoremove -y
apt-get remove dbconfig-mysql
rm -rf /etc/mysql /var/lib/mysql
find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin:
apt-get purge phpmyadmin
Autoremove and clean all dependencies:
apt-get autoremove
sudo apt-get autoclean
1
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
add a comment |
up vote
0
down vote
accepted
You can fully remove MySQL and phpMyAdmin by doing the following:
Open your terminal (CTRL+ALT+T) and log in as root:
sudo su
Stop all MySql services that may still be running:
service mysql stop
Remove mysql and all its folders and files:
apt-get remove --purge mysql*
apt-get remove --purge mysql-server mysql-client mysql-common -y
apt-get autoremove -y
apt-get remove dbconfig-mysql
rm -rf /etc/mysql /var/lib/mysql
find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin:
apt-get purge phpmyadmin
Autoremove and clean all dependencies:
apt-get autoremove
sudo apt-get autoclean
1
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
You can fully remove MySQL and phpMyAdmin by doing the following:
Open your terminal (CTRL+ALT+T) and log in as root:
sudo su
Stop all MySql services that may still be running:
service mysql stop
Remove mysql and all its folders and files:
apt-get remove --purge mysql*
apt-get remove --purge mysql-server mysql-client mysql-common -y
apt-get autoremove -y
apt-get remove dbconfig-mysql
rm -rf /etc/mysql /var/lib/mysql
find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin:
apt-get purge phpmyadmin
Autoremove and clean all dependencies:
apt-get autoremove
sudo apt-get autoclean
You can fully remove MySQL and phpMyAdmin by doing the following:
Open your terminal (CTRL+ALT+T) and log in as root:
sudo su
Stop all MySql services that may still be running:
service mysql stop
Remove mysql and all its folders and files:
apt-get remove --purge mysql*
apt-get remove --purge mysql-server mysql-client mysql-common -y
apt-get autoremove -y
apt-get remove dbconfig-mysql
rm -rf /etc/mysql /var/lib/mysql
find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin:
apt-get purge phpmyadmin
Autoremove and clean all dependencies:
apt-get autoremove
sudo apt-get autoclean
answered Nov 19 at 11:59
Yufenyuy Veyeh Dider
1,4554924
1,4554924
1
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
add a comment |
1
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
1
1
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
Many thanks all, that has sorted it. I have now re-installed and have it working correctly
– Gareth Jones
Nov 19 at 16:58
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
@GarethJones I'm glad your problem was resolved...
– Yufenyuy Veyeh Dider
Nov 19 at 21:14
add a comment |
up vote
1
down vote
Remove MySQL
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Remove MySQL folders
sudo rm -rf /etc/mysql /var/lib/mysql
Delete all MySQL files from File System
sudo find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin
sudo apt-get purge phpmyadmin
Cleanup system (dependences)
sudo apt-get autoremove
sudo apt-get autoclean
add a comment |
up vote
1
down vote
Remove MySQL
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Remove MySQL folders
sudo rm -rf /etc/mysql /var/lib/mysql
Delete all MySQL files from File System
sudo find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin
sudo apt-get purge phpmyadmin
Cleanup system (dependences)
sudo apt-get autoremove
sudo apt-get autoclean
add a comment |
up vote
1
down vote
up vote
1
down vote
Remove MySQL
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Remove MySQL folders
sudo rm -rf /etc/mysql /var/lib/mysql
Delete all MySQL files from File System
sudo find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin
sudo apt-get purge phpmyadmin
Cleanup system (dependences)
sudo apt-get autoremove
sudo apt-get autoclean
Remove MySQL
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Remove MySQL folders
sudo rm -rf /etc/mysql /var/lib/mysql
Delete all MySQL files from File System
sudo find / -iname 'mysql*' -exec rm -rf {} ;
Remove PhpMyAdmin
sudo apt-get purge phpmyadmin
Cleanup system (dependences)
sudo apt-get autoremove
sudo apt-get autoclean
edited Nov 19 at 11:07
answered Nov 19 at 11:01
S_Flash
1,061317
1,061317
add a comment |
add a comment |
up vote
0
down vote
If that was a production server, removing everything wouldn't be a solution. Probably your problem is related to the debian-sys-maint
MySQL user - its password or its privileges. The correct solution for this issue is provided in this answer on Stack Overflow:
That’s because Debian has a MySQL account
debian-sys-maint
used for switching on/off and checking status. The password for that user
should be the same as stored in/etc/mysql/debian.cnf
. The file
looks like this:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
If the password doesn't match (for example because you changed it manually) the init script won't work anymore. You should set the
password according to the file. So
mysql -u root -p
# Then type MySQL root password
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>';
add a comment |
up vote
0
down vote
If that was a production server, removing everything wouldn't be a solution. Probably your problem is related to the debian-sys-maint
MySQL user - its password or its privileges. The correct solution for this issue is provided in this answer on Stack Overflow:
That’s because Debian has a MySQL account
debian-sys-maint
used for switching on/off and checking status. The password for that user
should be the same as stored in/etc/mysql/debian.cnf
. The file
looks like this:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
If the password doesn't match (for example because you changed it manually) the init script won't work anymore. You should set the
password according to the file. So
mysql -u root -p
# Then type MySQL root password
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>';
add a comment |
up vote
0
down vote
up vote
0
down vote
If that was a production server, removing everything wouldn't be a solution. Probably your problem is related to the debian-sys-maint
MySQL user - its password or its privileges. The correct solution for this issue is provided in this answer on Stack Overflow:
That’s because Debian has a MySQL account
debian-sys-maint
used for switching on/off and checking status. The password for that user
should be the same as stored in/etc/mysql/debian.cnf
. The file
looks like this:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
If the password doesn't match (for example because you changed it manually) the init script won't work anymore. You should set the
password according to the file. So
mysql -u root -p
# Then type MySQL root password
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>';
If that was a production server, removing everything wouldn't be a solution. Probably your problem is related to the debian-sys-maint
MySQL user - its password or its privileges. The correct solution for this issue is provided in this answer on Stack Overflow:
That’s because Debian has a MySQL account
debian-sys-maint
used for switching on/off and checking status. The password for that user
should be the same as stored in/etc/mysql/debian.cnf
. The file
looks like this:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = <password>
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
If the password doesn't match (for example because you changed it manually) the init script won't work anymore. You should set the
password according to the file. So
mysql -u root -p
# Then type MySQL root password
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>';
answered Nov 19 at 11:41
pa4080
12.9k52460
12.9k52460
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094179%2fhow-to-fully-remove-mysql-and-phpmyadmin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown