RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 855704 - mysql server prompts for password at startup
Summary: mysql server prompts for password at startup
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mysql
Version: 6.4
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Michal Schorm
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-10 04:33 UTC by John Newbigin
Modified: 2017-04-12 10:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-10 08:15:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Newbigin 2012-09-10 04:33:44 UTC
(This is for mysql-server but there is no Component for that in bugzilla)

Description of problem:
mysql server asks for a password at startup:

[root@mysql ~]# service mysqld start
Enter password: 
Starting MySQL:                                            [  OK  ]

How reproducible:
Every time


Steps to Reproduce:
1. Edit /etc/my.cnf and add
[client]
password

2. stop and start mysqld
  
Actual results:
The init script runs this command:
/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 

which prompts for a password.

Expected results:
The server should start without prompting for a password.

Additional info:
By adding 
--password=""
to the mysqladmin command, the prompt is not displayed.

Comment 1 Tom Lane 2012-09-10 04:51:13 UTC
Perhaps --no-defaults would be a more inclusive solution.

Comment 2 John Newbigin 2012-09-10 05:12:47 UTC
Indeed. I did not know about that option. In fact, I can't find any info about that option at all.

Still it does work :-)

(I was looking for a --no-password option but that does not exist).

Comment 3 Tom Lane 2012-09-29 22:06:02 UTC
I've pushed --no-defaults into the Fedora versions of the package.  It'll ultimately work its way into newer RHEL releases from there, but I'm not sure if this will get into RHEL5 without your filing a request with your customer support contact.

Comment 4 Honza Horak 2013-03-19 14:46:12 UTC
I am sorry, but it is now too late in the RHEL-5 release cycle. RHEL-5.10 (the next RHEL-5 minor release) is going to be the first production phase 2 [1] release of RHEL-5. Since phase 2 we'll be addressing only security and critical issues.
However, this one issue is not fixed in RHEL-6 yet therefore I am moving this bugzilla to RHEL-6.


Note You need to log in before you can comment on or make changes to this bug.