Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249114 - emerge --config =dev-db/mysql-5.0.70 returns 'root'@'localhost' (using password: NO)
Summary: emerge --config =dev-db/mysql-5.0.70 returns 'root'@'localhost' (using passwo...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 21:20 UTC by orangeluna
Modified: 2008-11-29 18:55 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 orangeluna 2008-11-27 21:20:56 UTC
When loading a configured snort (/etc/init.d/.snort start) mysql database returns:

'root'@'localhost' (using password: NO)

No configuring I could load snort errorless.

I followed the wiki http://www.gentoo-wiki.info/Snort.  Tofix the problem I had to erase mysql:

      /etc/init.d/mysql stop
      rc-update del mysql
      emerge -C mysql
      rm -r /etc/mysql
      rm -r /var/lib/mysql
      rm -r /var/run/mysqld
      rm -r /var/log/mysql

emerge mysql again

Install Database:

/usr/bin/mysql_install_db
/etc/init.d/mysql start
/usr/bin/mysqladmin -u root password 'password'

Then I added user and database and restarted snort and didn't get the (using password: NO) error.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-27 23:37:35 UTC
Gentoo isn't responsible for http://www.gentoo-wiki.info/
Comment 2 orangeluna 2008-11-29 18:55:43 UTC
Agreed.  I tried the "emerge --config =dev-db/mysql..." twice though and got this error.  When I used the "/usr/bin/mysql_install_db" script I didn't have a problem.  Am new to mysql, possible error on my part.