mysql cli doesn't accept -p option in command line

Bug #2041493 reported by Mats Luspa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm running Ubuntu Bionic 18.04.6 LTS and the mysql version is "mysql Ver 14.14 Distrib 5.7.42, for Linux (i686) using EditLine wrapper".
The bug is that -p option doesn't work but --password option works in command line. For example:

This doesn't work:
mysql -u <username> -p <password> < sql.txt
But this work:
mysql -u <username> --password=<password> < sql.txt

/Regards Mats

Tags: mysql
Mats Luspa (matsl)
summary: - mysql cli doesn'rt accept -p option in command line
+ mysql cli doesn't accept -p option in command line
Revision history for this message
Mats Luspa (matsl) wrote :

It seems that you now must not have a space between -p and password, like -p<password>. But it has worked with space so this must have been changed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.