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

Adrian Cruceru <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
  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<[email protected]>
> 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
>> [email protected]
>> https://www.redhat.com/mailman/listinfo/kickstart-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.