2005年8月アーカイブ

mysqlの設定

|

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 to the [mysqld]
section, for example,
innodb_data_file_path = ibdata1:10M:autoextend
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

[mysqld]
skip-innodb
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
language=/usr/share/mysql/japanese/
default-character-set=ujis
set-variable = key_buffer=256M
set-variable = max_connections=256
set-variable = sort_buffer=3M
set-variable = record_buffer=1M
set-variable = table_cache=256

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[/etc/named.conf]

named.confに以下のように記述する

logging {
category lame-servers { null; };
};

/etc/webalizer.conf の中の次の箇所を変更することで、エラーを抑制する。

# ReallyQuiet no

ReallyQuiet yes

mysqlテーブル破損で修復

|

$ su -
PASSWORD: ***********

まずチェック
# mysqlcheck -A

mysqlにログイン

# mysql db名前

mysql> help;
mysql> show tables;
mysql> check table テーブル名 quick;
mysql> check table テーブル名 extended;
mysql> repair table テーブル名;
mysql> quit

rootのログインを禁止する
#PermitRootLogin yes
PermitRootLogin no

特定のユーザのみログインを許可する
AllowUsers user1

パスワード認証を禁止する
#PasswordAuthentication yes
PasswordAuthentication no

このアーカイブについて

このページには、2005年8月に書かれたブログ記事が新しい順に公開されています。

前のアーカイブは2005年7月です。

次のアーカイブは2005年9月です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。