| Summary: | Cannot set a root password for mysql | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Joseph M. Hinkle <jos_hinkle> |
| Component: | New packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Joseph M. Hinkle
2003-05-23 05:48:41 UTC
It works here for me, with one minor change. 1. ebuild /var/db/pkg/dev-db/mysql*/*.ebuild config 2. mysqladmin -u root -h darkstar password 'new-password' then the next instruction says: mysqladmin -u root -h darkstar password 'new-password' but I found I had to: mysqladmin -u root -h darkstar -p password 'new-password' and when prompted, enter the new-password from instruction 2. One other thing for you to check, is if you have a pre-existing MySQL database in /var/lib/mysql. In that case, the config does NOT overwrite it, and the old password is still in place. waiting for a response to close this issue. That took care of it. Thank you. This seems to be an upstream glitch. Pending reporting to MySQL. the commands supplied here work so far as i am able to connect to the server afterwards, but they do not actually set a password - i am able to connect as root with an empty password and no password shows up in the mysql.user table... there is a thread in the forums about this: http://forums.gentoo.org/viewtopic.php?p=375006#375006 slartibartfasz: run 'flush privileges;' in the mysql console after you use 'set password'. > run 'flush privileges;'
a classic - sorry! as far as i can see in the forums it seems to work now for everyone :))
user reports fixed. |