MySQL Forums
Forum List  »  UDF

Calling rpm lib rpmReadConfigFiles causes
Posted by: Marcin Dzieszko
Date: March 21, 2018 07:45AM

Hello,

I have created udf that calls rpm library method at centos7.
This uses so library installed with rpm-libs-4.11.3-21.el7.

When calling rpmReadConfigFiles which reads the rpm configuration. This causes the
following problem.

mysqld[8040]: error: cannot open Packages index using db5 - Permission denied (13)
mysqld[8040]: error: cannot open Packages database in
mysqld[8040]: error: cannot open Packages database in

This may be caused by lack of permissions to /var/lib/rpm files. But looks like the persmissions to those files are ok.

I used the same implementation to call it as cmd line application called as mysql user and it works fine.

Is there a limitation with using some external resourses while calling udfs.

Thank you in advance & Best Regards,
Marcin

Options: ReplyQuote


Subject
Views
Written By
Posted
Calling rpm lib rpmReadConfigFiles causes
278
March 21, 2018 07:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.