Re: help with packaging (preinst scripts)
On Wed, Aug 22, 2012 at 02:54:44PM +0200, David Cho-Lerat wrote:
>
> 3. add/edit some MySQL tables without knowing the MySQL root password
>
> I've fooled around with Expect for 1. and 2., and tried
> mysqld_safe --skip-grant-tables for 3., but I feel
> lame (and I have to have my preinst script stop/start the
> MySQL server during install) ..
You don't do this.
The database server might be on a different machine. So a requirement
for a local database, or any attempt to alter a local instance of
MySQL, is doomed to failure. Please don't do this.
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
Reply to: