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

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

 



 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.

Regards,
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@xxxxxxxxxxxxx>
wrote:
Hi guys, i nee ome help.

im using kickstart from fedora 7 to fedora 13, now im trying to use it
on
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 ?

thanks...

Rocha

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux