I can not reinstall MySQL because it keeps the old password
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Problem
Hi, my problem is that today I did the uninstallation of mysql with this comand:
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
but then I tried to reinstate it with the following commands:
sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
but when I launch mysql_secure_installation
, he asks me for the password I do not have. and so I'm stuck
Questions:
How can I completely uninstall mysql?
How can I overcome this password problem?
I conclude by saying that I really hope to be able to re-use MySQL on my PC, thanks for the help.
Important: I am not a native English speaker, so for any problem of
understanding let me know, thanks.
ubuntu apt software-installation
New contributor
add a comment |Â
up vote
0
down vote
favorite
Problem
Hi, my problem is that today I did the uninstallation of mysql with this comand:
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
but then I tried to reinstate it with the following commands:
sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
but when I launch mysql_secure_installation
, he asks me for the password I do not have. and so I'm stuck
Questions:
How can I completely uninstall mysql?
How can I overcome this password problem?
I conclude by saying that I really hope to be able to re-use MySQL on my PC, thanks for the help.
Important: I am not a native English speaker, so for any problem of
understanding let me know, thanks.
ubuntu apt software-installation
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Problem
Hi, my problem is that today I did the uninstallation of mysql with this comand:
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
but then I tried to reinstate it with the following commands:
sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
but when I launch mysql_secure_installation
, he asks me for the password I do not have. and so I'm stuck
Questions:
How can I completely uninstall mysql?
How can I overcome this password problem?
I conclude by saying that I really hope to be able to re-use MySQL on my PC, thanks for the help.
Important: I am not a native English speaker, so for any problem of
understanding let me know, thanks.
ubuntu apt software-installation
New contributor
Problem
Hi, my problem is that today I did the uninstallation of mysql with this comand:
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
but then I tried to reinstate it with the following commands:
sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
but when I launch mysql_secure_installation
, he asks me for the password I do not have. and so I'm stuck
Questions:
How can I completely uninstall mysql?
How can I overcome this password problem?
I conclude by saying that I really hope to be able to re-use MySQL on my PC, thanks for the help.
Important: I am not a native English speaker, so for any problem of
understanding let me know, thanks.
ubuntu apt software-installation
ubuntu apt software-installation
New contributor
New contributor
New contributor
asked 17 mins ago
V.Cozzatella
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
The mysql
configuration datadir
defines where the databases are kept. Normally it is /var/lib/mysql
, inside there will most likely be the databases from the previous install.
The databases are saved as $datadir/$DATABASE
. The MySQL passwords are kept in the mysql
database in the user
table. Save what you need and remove the entire datadir
directory then try to install mysql-server
again.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
The mysql
configuration datadir
defines where the databases are kept. Normally it is /var/lib/mysql
, inside there will most likely be the databases from the previous install.
The databases are saved as $datadir/$DATABASE
. The MySQL passwords are kept in the mysql
database in the user
table. Save what you need and remove the entire datadir
directory then try to install mysql-server
again.
add a comment |Â
up vote
0
down vote
The mysql
configuration datadir
defines where the databases are kept. Normally it is /var/lib/mysql
, inside there will most likely be the databases from the previous install.
The databases are saved as $datadir/$DATABASE
. The MySQL passwords are kept in the mysql
database in the user
table. Save what you need and remove the entire datadir
directory then try to install mysql-server
again.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
The mysql
configuration datadir
defines where the databases are kept. Normally it is /var/lib/mysql
, inside there will most likely be the databases from the previous install.
The databases are saved as $datadir/$DATABASE
. The MySQL passwords are kept in the mysql
database in the user
table. Save what you need and remove the entire datadir
directory then try to install mysql-server
again.
The mysql
configuration datadir
defines where the databases are kept. Normally it is /var/lib/mysql
, inside there will most likely be the databases from the previous install.
The databases are saved as $datadir/$DATABASE
. The MySQL passwords are kept in the mysql
database in the user
table. Save what you need and remove the entire datadir
directory then try to install mysql-server
again.
answered 1 min ago
GracefulRestart
88917
88917
add a comment |Â
add a comment |Â
V.Cozzatella is a new contributor. Be nice, and check out our Code of Conduct.
V.Cozzatella is a new contributor. Be nice, and check out our Code of Conduct.
V.Cozzatella is a new contributor. Be nice, and check out our Code of Conduct.
V.Cozzatella is a new contributor. Be nice, and check out our Code of Conduct.
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476609%2fi-can-not-reinstall-mysql-because-it-keeps-the-old-password%23new-answer', 'question_page');
);
Post as a guest
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
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
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