[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to start MySql on %post install and insert data

 Hi Rocha,

You will probably need to do this in "%post --nochroot" section

Mount stuff to your chroot:
mount -o bind /dev /mnt/sysimage/dev
mount -o bind /sys /mnt/sysimage/sys
mount -o bind /proc /mnt/sysimage/proc

Raise a network interface:
/sbin/ifconfig lo up

After which, your %post should probably work.

You will be able to run mysqld from installer context.

I'm not sure if that is really a good idea though, it might be better to have a simple script that does this at first boot.

Adrian Cruceru

On 01/26/2012 05:35 PM, Sebastiao Rocha wrote:
I already try your sugeestion, mysqld start, but without bind socket, so
mysqld start but mysql and mysqladmin does not connect to him.

any other sugestions ?

On Thu, 26 Jan 2012 00:34:37 -0200, Sebastiao Rocha<rocha abracops info>
Hi guys, i nee ome help.

im using kickstart from fedora 7 to fedora 13, now im trying to use it
fedora 16 with no success

my trouble is how to start mysqld on post install

i have tried this code...
systemctl enable mysqld.service
systemctl start mysqld.service

but it gave me a error message: "Running in chroot, ignoring request"
and mysqld does not start to allow data insertion with mysql<<

anyone know hot to do this on fc15+ with systemd ?



Kickstart-list mailing list
Kickstart-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]