| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-05-2009, 08:11 PM
|
#1
|
|
Member
Registered: Aug 2009
Posts: 277
Rep:
|
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
Last edited by k_oudom; 10-05-2009 at 08:15 PM.
|
|
|
|
10-05-2009, 08:55 PM
|
#2
|
|
Member
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83
Rep:
|
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,
|
|
|
|
10-05-2009, 09:00 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2008
Location: Chennai - INDIA
Distribution: CentOS
Posts: 10
Rep:
|
Quote:
Originally Posted by k_oudom
mysqladmin -h server1.example.com -u root password yourrootsqlpassword
|
mysqladmin is the program used to do administration of mysql Db from Linux shell. If you do not know this , what kind of task your are doing in a server ? Is your server is live and real ?
|
|
|
|
10-05-2009, 09:37 PM
|
#4
|
|
Member
Registered: Aug 2009
Posts: 277
Original Poster
Rep:
|
I'm working on a tutorial. I have seen this command line. Do you know what does it do?
|
|
|
|
10-05-2009, 11:34 PM
|
#5
|
|
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,093
Rep:
|
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.
|
|
|
|
10-05-2009, 11:39 PM
|
#6
|
|
Member
Registered: Aug 2009
Posts: 277
Original Poster
Rep:
|
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.
|
|
|
|
10-06-2009, 12:01 AM
|
#7
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,021
|
|
|
|
|
10-06-2009, 12:13 AM
|
#8
|
|
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,093
Rep:
|
I have searched in google there is about 7450 links in this regards, the exact command that you have posted
Quote:
|
I'm working on a tutorial. I have seen this command line. Do you know what does it do?
|
Even from any of link you can get the idea what does this command doing.
|
|
|
|
10-06-2009, 03:00 AM
|
#9
|
|
Member
Registered: Aug 2009
Posts: 277
Original Poster
Rep:
|
I ask here because I get error while configuring MySQL Server on CentOS 5.3
Code:
[root@server1 ~]# mysqladmin -u root password password123
[root@server1 ~]# mysqladmin -h server1.example.com -u root password password123
mysqladmin: connect to server at 'localhost' faild
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
When I try to telnet:
Code:
[root@server1 ~]# telnet server1.example.com
Trying 192.168.100.8...
telnet: connect to address 192.168.100.8: Connection refused
telnet: Unable to connect to remote host: Connection refused
Please don't try to lead me to read outside web pages. I already try to read a lot but It can't be help.
|
|
|
|
10-06-2009, 04:25 AM
|
#10
|
|
Member
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161
Rep:
|
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
As described earlier, "mysqladmin" is a tool to connect to the mysql server and manage it. With the above command, you will be connected to the mysql server running in the host "server1.example.com" with user root and mysql password "yourrootsqlpassword".
Hope this helps.
|
|
|
|
10-06-2009, 05:04 AM
|
#11
|
|
Member
Registered: Aug 2009
Posts: 277
Original Poster
Rep:
|
Really? But why I have to connect to MySQL since I execute the command in the Server Machine.
|
|
|
0 members found this post helpful.
|
10-06-2009, 05:07 AM
|
#12
|
|
Member
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|