Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

MySql 5

 
   Soft32 Home -> Linux -> Partner Relationship Management RSS
Next:  How do I create a binary installation rpm?  
Author Message
feudalac!

External


Since: Nov 14, 2006
Posts: 2



(Msg. 1) Posted: Thu Jul 27, 2006 6:27 am
Post subject: MySql 5
Archived from groups: comp>os>linux, others (more info?)

I have installed MySQL 5 which i downloaded from the MySQL.org site
(installation wan on a clean version of RedHat AS 4)

I have installed the following files

MySQL-server-standard-5.0.18-0.rhel4.i386.rpm
MySQL-client-standard-5.0.18-0.rhel4.i386.rpm




after the instalation, mysql tryed to start automaticly but failed with
out errors printed into shell

this is part od var/log/messages


Jul 27 13:12:03 localhost kernel: audit(1153998720.940:0): avc: denied
{ append } for pid=2342 exe=/usr/sbin/mysqld
path=/var/lib/mysql/localhost.localdomain.err dev=dm-0 ino=3819465
scontext=user_u:system_r:mysqld_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 27 13:12:03 localhost kernel: audit(1153998720.940:0): avc: denied
{ append } for pid=2342 exe=/usr/sbin/mysqld
path=/var/lib/mysql/localhost.localdomain.err dev=dm-0 ino=3819465
scontext=user_u:system_r:mysqld_t tcontext=root:object_r:var_lib_t
tclass=file
Jul 27 13:12:03 localhost kernel: audit(1153998723.440:0): avc: denied
{ write } for pid=2342 exe=/usr/sbin/mysqld name=mysql dev=dm-0
ino=3819462 scontext=user_u:system_r:mysqld_t
tcontext=root:object_r:var_lib_t tclass=dir
Jul 27 13:12:03 localhost xinetd[2248]: xinetd Version 2.3.13 started
with libwrap loadavg options compiled in.
Jul 27 13:12:03 localhost xinetd[2248]: Started working: 0 available
services
Jul 27 13:12:04 localhost kernel: audit(1153998724.071:0): avc: denied
{ write } for pid=2342 exe=/usr/sbin/mysqld name=mysql dev=dm-0
ino=3819462 scontext=user_u:system_r:mysqld_t
tcontext=root:object_r:var_lib_t tclass=dir




What could that be? and does anyone know a sollution to the problem?




--
You're not payed to think. A mindless worker is a happy worker. Shut up
and do your job!
Back to top
Login to vote
Segin

External


Since: Jul 27, 2006
Posts: 1



(Msg. 2) Posted: Thu Jul 27, 2006 2:00 pm
Post subject: Re: MySql 5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

feudalac! wrote:
> I have installed MySQL 5 which i downloaded from the MySQL.org site
> (installation wan on a clean version of RedHat AS 4)
>
> I have installed the following files
>
> MySQL-server-standard-5.0.18-0.rhel4.i386.rpm
> MySQL-client-standard-5.0.18-0.rhel4.i386.rpm
>
>
>
>
> after the instalation, mysql tryed to start automaticly but failed with
> out errors printed into shell
>
> this is part od var/log/messages
>
>
> Jul 27 13:12:03 localhost kernel: audit(1153998720.940:0): avc: denied
> { append } for pid=2342 exe=/usr/sbin/mysqld
> path=/var/lib/mysql/localhost.localdomain.err dev=dm-0 ino=3819465
> scontext=user_u:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> tclass=file
> Jul 27 13:12:03 localhost kernel: audit(1153998720.940:0): avc: denied
> { append } for pid=2342 exe=/usr/sbin/mysqld
> path=/var/lib/mysql/localhost.localdomain.err dev=dm-0 ino=3819465
> scontext=user_u:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> tclass=file
> Jul 27 13:12:03 localhost kernel: audit(1153998723.440:0): avc: denied
> { write } for pid=2342 exe=/usr/sbin/mysqld name=mysql dev=dm-0
> ino=3819462 scontext=user_u:system_r:mysqld_t
> tcontext=root:object_r:var_lib_t tclass=dir
> Jul 27 13:12:03 localhost xinetd[2248]: xinetd Version 2.3.13 started
> with libwrap loadavg options compiled in.
> Jul 27 13:12:03 localhost xinetd[2248]: Started working: 0 available
> services
> Jul 27 13:12:04 localhost kernel: audit(1153998724.071:0): avc: denied
> { write } for pid=2342 exe=/usr/sbin/mysqld name=mysql dev=dm-0
> ino=3819462 scontext=user_u:system_r:mysqld_t
> tcontext=root:object_r:var_lib_t tclass=dir
>
>
>
>
> What could that be? and does anyone know a sollution to the problem?
>
>
>
It appears your kernel has some type of process auditing enabled, and
thus is disallowing mysqld to write to
/var/lib/mysql/localhost.localdomain.err

Check your configuration. I have never used Red Hat before, but I can
determine a error message's meaning just by reading it.
Back to top
Login to vote
feudalac!

External


Since: Nov 14, 2006
Posts: 2



(Msg. 3) Posted: Fri Jul 28, 2006 1:01 am
Post subject: Re: MySql 5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Segin izlupa:

> feudalac! wrote:
> > I have installed MySQL 5 which i downloaded from the MySQL.org site
> > (installation wan on a clean version of RedHat AS 4)
> >
> > I have installed the following files
> >
> > MySQL-server-standard-5.0.18-0.rhel4.i386.rpm
> > MySQL-client-standard-5.0.18-0.rhel4.i386.rpm
> >
> >
> >
> >
> > after the instalation, mysql tryed to start automaticly but failed
> > with out errors printed into shell
> >
> > this is part od var/log/messages
> >
> >
> > Jul 27 13:12:03 localhost kernel: audit(1153998720.940:0): avc:
> > denied { append } for pid=2342 exe=/usr/sbin/mysqld
> > path=/var/lib/mysql/localhost.localdomain.err dev=dm-0 ino=3819465
> > scontext=user_u:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> > tclass=file
> > Jul 27 13:12:03 localhost kernel: audit(1153998720.940:0): avc:
> > denied { append } for pid=2342 exe=/usr/sbin/mysqld
> > path=/var/lib/mysql/localhost.localdomain.err dev=dm-0 ino=3819465
> > scontext=user_u:system_r:mysqld_t tcontext=root:object_r:var_lib_t
> > tclass=file
> > Jul 27 13:12:03 localhost kernel: audit(1153998723.440:0): avc:
> > denied { write } for pid=2342 exe=/usr/sbin/mysqld name=mysql
> > dev=dm-0 ino=3819462 scontext=user_u:system_r:mysqld_t
> > tcontext=root:object_r:var_lib_t tclass=dir
> > Jul 27 13:12:03 localhost xinetd[2248]: xinetd Version 2.3.13
> > started with libwrap loadavg options compiled in.
> > Jul 27 13:12:03 localhost xinetd[2248]: Started working: 0 available
> > services
> > Jul 27 13:12:04 localhost kernel: audit(1153998724.071:0): avc:
> > denied { write } for pid=2342 exe=/usr/sbin/mysqld name=mysql
> > dev=dm-0 ino=3819462 scontext=user_u:system_r:mysqld_t
> > tcontext=root:object_r:var_lib_t tclass=dir
> >
> >
> >
> >
> > What could that be? and does anyone know a sollution to the problem?
> >
> >
> >
> It appears your kernel has some type of process auditing enabled, and
> thus is disallowing mysqld to write to
> /var/lib/mysql/localhost.localdomain.err
>
> Check your configuration. I have never used Red Hat before, but I can
> determine a error message's meaning just by reading it.

thanks...


after i did this
/etc/selinux/config
SELINUX=disabled

the error is gone

now i have the following entry in var/log/messages
Jul 27 15:21:54 localhost lsb_log_message: failed

but in /var/lib/mysql/localhost.localdomain.err i have
Fatal Error: Can't open and lock privilege tables: mysql.host doesn't
exist


thanks


--
You're not payed to think. A mindless worker is a happy worker. Shut up
and do your job!
Back to top
Login to vote
Michael Trausch

External


Since: Aug 24, 2007
Posts: 1



(Msg. 4) Posted: Fri Aug 24, 2007 4:02 am
Post subject: Re: MySql 5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

feudalac!, on 07/28/2006 02:01 AM said:
>
> but in /var/lib/mysql/localhost.localdomain.err i have
> Fatal Error: Can't open and lock privilege tables: mysql.host doesn't
> exist
>

MySQL has a set of instructions that you need to follow to initialize
the 'mysql' database and the tables that reside in it.

Running 'mysql_install_db' should fix the problem. After that, run
mysql_secure_installation to set a MySQL root password and configure
some other options to create a secure MySQL installation. You may need
to run these commands as the 'mysql' user; check the documentation to be
sure.

-- Mike

--
Michael B. Trausch http://www.trausch.us/

Pidgin 2.1.0 repository for Feisty: http://www.trausch.us/pidgin
Back to top
Login to vote
Display posts from previous:   
Related Topics:
mySQL - Hi, I have linux 9.0 installed with mySQL preinstalled, how can i remove the installed version, thanks Shannon

DBD MySQL help - Sorry for posting a new thread, google is crippled and my ISP doesn't allow posts. Also sorry for being a lamer, I..

MySQL problems - *sigh* again, a new thread because google won't let me reply (errors and red text) and I have no other usenet account. ...

DBD MySQL 4 - So now I have everything installed, but when I try to connect from a perl script with DBI I get: [Mon Dec 13 16:38:23....

Trying to install DBD::Mysql on RH9 - mysql client/server and DBI are all installed, I can't find a DBD::mysql RPM and I can't install from source. My proble...

MySQL Installation probs, rpm - Hi all, I hope someone here may be able to help me out! I have already serached the net for info to sort my problem bu...
       Soft32 Home -> Linux -> Partner Relationship Management All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]