Cannot enter the password on pt-mysql-summary
Bug #1474547 reported by
Valent
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
when I try to use pt-mysql-summary, I enter my root password then I digit the password and press ENTER. However, I continue get the request "Enter password:". I suspect a problem with an "escape" character: my password contains a underscore and a bang.
If I try to connect to mysql in this way:
mysql -u root -p
I enter the password and I get the prompt.
Complete command‐line used to run the tool:
pt-mysql-summary -- --user=root -p
Tool version:
2.2.14 (installed from percona-
MySQL version of all servers involved:
5.5.40-
Output from the tool including STDERR:
root@srv01:~# pt-mysql-summary -- --user=root -p
Enter password:
Enter password:
To post a comment you must log in.
Hi,
I don't know why you are giving -- two times in command line, before user information.
Can you try to run like this and check?
pt-mysql-summary --user=root --password= <yourpassword>
If you don't want to give password in command line then you can create .my.cnf in your home folder and then run direct pt-mysql-summary command. i.e
nilnandan@ desktop: ~$ cat .my.cnf desktop: ~$ desktop: ~$ pt-mysql-summary ####### ####### ##
System time | 2015-07-21 06:33:51 UTC (local TZ: IST +0530) ####### ####### ####### ####### ####### ####### # ======= ======= ===== ==== === ====== mysqld/ mysqld. sock ####### ####### ####### ####### ####### #
[client]
user=root
password=root
nilnandan@
nilnandan@
# Percona Toolkit MySQL Summary Report #######
# Instances #######
Port Data Directory Nice OOM Socket
===== =======
3306 /var/lib/mysql 0 0 /var/run/
# MySQL Executable #######
Path to executable | /usr/sbin/mysqld
Has symbols | No
...