|
Subject: Re: Autostarting MYSQLyou
From: "Smith, Mike" <mike_smith@xxxxxxxxxxxxxxxx>
Date: Wed, 6 Jan 2010 09:27:42 -0500
Well, I might have come across the problem. It appears that I don't have
a MYSQL userid.
First, I ran the chown -R mysql *. I didn't really get any feedback
whether it worked or not.
Started MYSQL subsystem. Still got same error in log file.
Opened PHPMYADMIN. Noticed that the none of the schemas showed any
tables. Got really scared at this point.
Ended MYSQL subsystem.
Started MYSQL daemon through my normal interactive method.
When back into PHPMYADMIN and now my schemas showed tables.
Opened the rgc schema and looked under privledges. It shows only 2
users--Itso and root.
So that leads me to believe I don't have a user MYSQL.
Now if this is true, I need to figure out how to add a MYSQL userid and
then grant privledges to it.
One other bit of info, is that I did change the STRMYSQL program to use
itso and then root, but neither caused a sucessful run. The daemon
starts and ends almost immediately.
I'm feel like I'm treading water and about to sink. :).
Thanks for all the help
Mike
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Tuesday, January 05, 2010 4:06 PM
To: Web Enabling the AS400 / iSeries
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
by
are taking to start up MySQL are using different user profiles.
Consequently, tables (and their associated .frm IFS files) created
one profile are inaccessible by the other. In general, to avoid thisthis
pitfall, MySQL should be only run under a single user profile. You
could try adopting authority as Mike Pavlak suggested earlier in
thread, or you could change the owner or permissions of the files inthe
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
path. I interactively ran the STRMYSQL program.starts.
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
However, now when I try to open my website, I get the following.`jos_session` (
jtablesession::Store Failed
DB function failed with error number 1017 Can't find file:
'./rgc/jos_session.frm' (errno: 13) SQL=INSERT INTO
`session_id`,`time`,`username`,`gid`,`guest`,`client_id`because it
) VALUES (
'b42ac67b758591d372a7d414a57dddef','1262718581','','0','1','0' )
It seems to be a path error of some sort, but I'm confused
this
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
message in error, or are not the named recipient(s), please
immediately notify the sender and delete this message.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To
post a message email: web400@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
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 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.