Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Andrew Shugg <andrew@neep.com.au>
To: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] MySQL
Date: Thu, 21 Feb 2002 13:15:11 +0800	[thread overview]
Message-ID: <20020221131507.E611@neep.com.au> (raw)
In-Reply-To: <5.0.2.1.2.20020218115723.00ad0e80@pop.puretec.de>; from tilo@jandt-online.net on Mon, Feb 18, 2002 at 12:03:11PM +0100

Quoth Tilo Jandt:
> 020218 11:57:49  mysqld started
> Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
> If you do not want to use transactional InnoDB tables, add a line
> skip-innodb
> to the [mysqld] section of init parameters in your my.cnf
> or my.ini. If you want to use InnoDB tables, add for example,
> innodb_data_file_path = ibdata1:30M
> But to get good performance you should adjust for your hardware
> the InnoDB startup options listed in section 2 at
> http://www.innodb.com/ibman.html
> 020218 11:57:51  /usr/sbin/mysqld: Can't find file: './mysql/host.frm' 
> (errno: 13)
> 020218 11:57:51  mysqld ended

The innodb warning you can easily fix by adding the 'skip-innodb' line
as the text there suggests.

> Preparing db table
> Preparing host table
> Preparing user table
> Preparing func table
> Preparing tables_priv table
> Preparing columns_priv table
> Installing all prepared tables
> 020218 11:57:41  /usr/sbin/mysqld: Shutdown Complete
> 
> 
> PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
> This is done with:
> /usr/bin/mysqladmin -u root -p password 'new-password'
> /usr/bin/mysqladmin -u root -h beta -p password 'new-password'
> See the manual for more instructions.
> 
> Please report any problems with the /usr/bin/mysqlbug script!
> 
> The latest information about MySQL is available on the web at
> http://www.mysql.com
> Support MySQL by buying support/licenses at https://order.mysql.com
> 
> ERROR: 1017  Can't find file: './mysql/user.frm' (errno: 13)
> 020218 11:57:42  /usr/sbin/mysqld: Shutdown Complete
> 
> ERROR: 1017  Can't find file: './mysql/db.frm' (errno: 13)
> ERROR: 1017  Can't find file: './mysql/db.frm' (errno: 13)
> 020218 11:57:44  /usr/sbin/mysqld: Shutdown Complete
> 
> But these files (db.frm and user.frm) exists in /var/lib/mysql.
> 
> Does anyone have an idea how to get mysql work?

This probably isn't a linux-hppa problem.  Check:

  - does /etc/mysql/my.cnf have the line "datadir = /var/lib/mysql"?
  - are /var/lib/mysql and /var/lib/mysql/mysql owned by "mysql.mysql"?
  - are the files in /var/lib/mysql/mysql mode 0660?  (-rw-rw----)

If your mysqld is telling us the truth, then it's just having trouble
getting to the files, either because it doesn't know where they are, it
doesn't have permission to read them, or because on of the directories
higher up the tree (eg /var/lib or /var/lib/mysql) is not accessable
for the mysql user (+x).

Try this if you have sudo installed:

beta# sudo -u mysql ls -laR /var/lib/mysql

If the output all looks kosher then it's not an access and permissions
problem, and you'll have to think of something else ...

Andrew.

-- 
Andrew Shugg <andrew@neep.com.au>                   http://www.neep.com.au/

"Just remember, Mr Fawlty, there's always someone worse off than yourself."
"Is there?  Well I'd like to meet him.  I could do with a good laugh."

  reply	other threads:[~2002-02-21  5:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-18 10:19 [parisc-linux] Re: hppa-linux gcc-3.0.3: Joël Soete
2002-02-18 11:03 ` [parisc-linux] MySQL Tilo Jandt
2002-02-21  5:15   ` Andrew Shugg [this message]
2002-02-18 14:29 ` [parisc-linux] Re: hppa-linux gcc-3.0.3: Carlos O'Donell Jr.
2002-02-18 16:25 ` John David Anglin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020221131507.E611@neep.com.au \
    --to=andrew@neep.com.au \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox