× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Scott,

Yes, I believe you are right and I was wrong about adopted authority. I
was thinking "swapping user profiles" when I read and wrote "adopted
authority." (I was also wrong about the mnemonic for errno 13--it should
be EACCES--but the meaning was correct).

Your solution changes the owner of the directory where the MySQL
executables live. However, I believe this is a permissions problem with
the data directory.
Consequently, I would amend your solution to:
cd /QOpenSys/usr/local/mysql/data
chown -R mysql *

Obviously, if Mike is starting the server under a profile other than
MYSQL, that chown command will need to be modified accordingly.

Tim

date: Tue, 05 Jan 2010 15:05:50 -0600
from: Scott Klement <web400@xxxxxxxxxxxxxxxx>
subject: Re: [WEB400] Autostarting MYSQL

Tim,

I'm surprised to hear you suggest adopted authority. OS/400 normally
doesn't use adopted authority for IFS permissions... so I wouldn't
expect adopting authority to have any impact here.

Instead, I would suspect that MYSQL was previously started with a
different userid (not the MYSQL userid) and those tables got created
under that ID.

Fixing it should be a matter of doing:

cd /QOpenSys/usr/local/mysql/mysql
chown -R mysql *

shouldn't it? Or is there more to the issue than I understand?



Timothy P Clark wrote:
Mike,

errno 13 is EPERM (Permission denied) in PASE/AIX. Basically, the
MySQL
server is getting its hand slapped when it tries to open the .frm file
for
the jos_session table (part of Joomla) in the rgc schema. This leads
me to
believe that the two different paths that you are taking to start up
MySQL
are using different user profiles. Consequently, tables (and their
associated .frm IFS files) created by one profile are inaccessible by
the
other. In general, to avoid this pitfall, MySQL should be only run
under a
single user profile. You could try adopting authority as Mike Pavlak
suggested earlier in this thread, or you could change the owner or
permissions of the files in the MySQL data directory, or both.

Tim


Subject: Re: Autostarting MYSQL
From: "Smith, Mike" <mike_smith@xxxxxxxxxxxxxxxx>
Date: Tue, 5 Jan 2010 14:19:24 -0500

Scott,
Thanks for the code. I have it downloaded but I only have it
partially
working. Its probably minor, but I've been unable to resolve the
issue
so far today.

After compiling all the code, and making the necessary change to the
path. I interactively ran the STRMYSQL program.
It opened up QP2shell and started the MYSQL daemon.
I was then able to open my Joomla website.
Great, its working.
I ended the MYSQL daemon and did a strsbs MYSQL.
The subsystem starts and it appears that the MYSQL daemon starts.
However, now when I try to open my website, I get the following.

jtablesession::Store Failed
DB function failed with error number 1017
Can't find file: './rgc/jos_session.frm' (errno: 13) SQL=INSERT INTO
`jos_session` (
`session_id`,`time`,`username`,`gid`,`guest`,`client_id`
) VALUES (
'b42ac67b758591d372a7d414a57dddef','1262718581','','0','1','0' )

It seems to be a path error of some sort, but I'm confused because it
works interactively.

Looking in the log file I found this
ERROR]
/QOpenSys/usr/local/mysql/mysql-5.1.39-i5os-power-64bit/bin/mysqld:
Can't find file: './rgc/jos_session.frm' (errno: 13)

I'm not sure why its trying to point to this folder/file.

Thanks for your help and all that you do.

Mike

NOTICE: This message, including any attachment, is intended as a
confidential and privileged communication. If you have received this
message in error, or are not the named recipient(s), please
immediately notify the sender and delete this message.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.