Completely Uninstall MySQL Server
I try to uninstall MySQL server using rpm -e --nodeps mysql mysql-server and seen that it is not completely remove. When I install MySQL server again. The databases and root password still remain. May you tell me how to remove MySQL Server completely include databases and password? I'm using CentOS 5.3
One more thing, What is this command mean? mysqladmin -h server1.example.com -u root password yourrootsqlpassword |
Hi,
In order to completely remove the mysql program and data, you also need to delete the /var/lib/mysql directory and it's contents. Be aware that deleting the rpm package using --nodeps can break other packages depending on it. For the options of your command, I suggest you read "man mysql" all options are explained there. Best regards, |
Quote:
|
I'm working on a tutorial. I have seen this command line. Do you know what does it do?
|
Simply you can assume what is that? (because there is a username and password, so it's a kind of security to protect your mysql). Don't expect the whole things from here to finish your assignment. Do the right search in google and prepare the assignment on yourself.
|
If you know you can tell me. That isn't easy to search the command line like this in google. It will be a lot of hits. If it is easy to learn linux, I wouldn't be here.
|
Perhaps you'd like to read this: http://linux.die.net/man/1/mysqladmin
|
I have searched in google there is about 7450 links in this regards, the exact command that you have posted
Quote:
|
I ask here because I get error while configuring MySQL Server on CentOS 5.3
Code:
[root@server1 ~]# mysqladmin -u root password password123 Code:
[root@server1 ~]# telnet server1.example.com |
Essence of GNU/Linux is to explore the power of openness if gives to you. It is always a pleasure to learn yourself and help others.
Code:
mysqladmin -h server1.example.com -u root password yourrootsqlpassword Hope this helps. |
Really? But why I have to connect to MySQL since I execute the command in the Server Machine.
|
I believe you were asking an explanation of the command that you posted. When in the same server you can either use mysqladmin or mysql as you want.
|
All times are GMT -5. The time now is 10:49 PM. |