Actually, if you really want/need to go that way, and you know the rpm will only be installed from the commandline where the scripts can prompt for input, then you can just use 'mysql -u root -p' and mysql itself will prompt for the password. Easier, and safer (since a password given on the commandline may show up in ps output so other users on the system can see it, unless mysql does a good job of cleaning up its commandline, I never checked on that). Waht I usually prefer in rpms I make for internal use is that these post-install scripts append a message to /etc/motd of tasks that still need to be ryun by root, or checked (eg the case where the rpm install is actually an upgrade and no database needs to be created) David Jansen On Thu, Dec 21, 2006 at 04:42:42PM +0100, Manuel Arostegui Ramirez wrote: > El Jueves, 21 de Diciembre de 2006 14:51, Patrick Doyle escribió: > > > A (very) dirty trick is to let the installation script > > > stop the mysqld daemon, start it again with --skip-grant-tables, > > > load your databases (no password is then required), and > > > restart the daemon normally. > > Yeah, I could be a great idea, but I don't fancy that idea too much, I don't > want to touch mysql daemon, I mean, is there no other way to do that? > I've been thinking about some simple like echo&read and then: > mysql -u root --password=`echo $password` > > -- > Manuel Arostegui Ramirez. > > Electronic Mail is not secure, may not be read every day, and should not > be used for urgent or sensitive issues. > > > > ------------------------------ -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list