mysqladmin: connect to server at 'localhost' failed(Confusion abot MySQL and mysqladm
Hi,
Hope you all are at good health:).I have some confusion about mysqladmin and mysql.I am using mysql version Quote:
Quote:
Quote:
Quote:
Quote:
I am using Quote:
Thanks you. |
you need to add username and password,
something like Quote:
|
Hi,
Thanks.:eek:Hmmm. Ok But i want to ask another thing :scratch: Is mysql and mysqladmin are two different things? Means do both have their own users? The user created on mysql is different and user created on mysqladmin is different. Thanks |
If you have the same server communicating to, of course ,they have the same users. mysql and mysqladmin are just tools. basically mysqladmin from the word itself, is a client for administering the mysql server. mysqladmin is used normally to execute mysql commands in the CLI,not in the mysql prompt.This is very useful when creating shell scripts
I'll give you an example objective: to show processlist using mysql 1. #mysql -uroot -ppassword mysql>show processlist; using mysqladmin # mysqladmin -u root -ppassword processlist They will basically do the same thing |
"mysqladmin" is a command-line tool to enable certain administrative tasks on the MySQL server running on that machine. "mysql" is the command-line *client* which allows you to login to the MySQL server (which may or may not be on the same machine) to perform whatever tasks you want.
|
All times are GMT -5. The time now is 05:01 PM. |