I have to login as root user to do mysql_install_db and safe_mysqld &.
Otherwise I will get permission denied message.
How come when I type service mysqld start, Linux says command not found? I
could not find the command chkconfig either.
Your idea does not work for me.
Thanks anyhow.
Ling
>From: [EMAIL PROTECTED] (Trond Eivind Glomsrød)
>To: "Ling Wang" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: Can't start MYSQL on Linux
>Date: 07 Aug 2001 00:13:51 -0400
>
>"Ling Wang" <[EMAIL PROTECTED]> writes:
>
> > I have a fresh installed Linux 7.1 from Redhat. The mysal 3.23.36 was
> > installed together with the Redhat Linux. I can not start the mysql
> > server by executing /usr/bin/safe_mysqld &.
>
>You're not supposed to. To start mysql, as any service, do
>
>service mysqld start
>
>(which is equivalent to running the initscript like this
>"/etc/init.d/mysqld start"). This will automatically initialize the
>database the first time it runs. To make it start when your system
>starts, do
>
>chkconfig mysqld on
>
>What you've done (and too many others, where do they get this idea?)
>is that you've created the database files as root. Then you start the
>database, which will run as "mysql". This user can obviously not write
>to root's files. Change the ownership manually, and try again - with
>"service mysqld start".
>
>--
>Trond Eivind Glomsrød
>Red Hat, Inc.
>
>---------------------------------------------------------------------
>Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
>To request this thread, e-mail <[EMAIL PROTECTED]>
>To unsubscribe, e-mail
><[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php