Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91542 - minor issue with 'ebuild mysql-4.0.24.ebuild config'
Summary: minor issue with 'ebuild mysql-4.0.24.ebuild config'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-05 02:20 UTC by Toralf Förster
Modified: 2005-05-05 02:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2005-05-05 02:20:45 UTC
After a fresh install of mysql the ebuild says after the command shown in the summary:

...
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, issue the following commands to start the server
and change the applicable passwords:
  /etc/init.d/mysql start
  /usr/bin/mysqladmin -u root -h n22 password 'new-password'
  /usr/bin/mysqladmin -u root password 'new-password'
...

but the second command is wrong.
See here the reason:
...

n22 /var/log/portage #  /etc/init.d/mysql start
 * Starting mysqld...                                                                                                                             [ ok ]
n22 /var/log/portage # /usr/bin/mysqladmin -u root -h n22 password mypwd
n22 /var/log/portage # /usr/bin/mysqladmin -u root password mypassword
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
n22 /var/log/portage # /usr/bin/mysqladmin -u root password mypassword -p
Enter password:
...

The second command does need the parameter '-p' because at the time the command is called a password was set immediately before.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-05 02:29:26 UTC
the second command is NOT wrong.
it only depends on the configuration of your system (namely is mysqladmin connecting to the mysql instance using the loopback interface, or the non-localhost address?)

we picked the route that would have the fewest bug reports like this.