MySQL
2007年10月12日
mysql grant and revoke
by
TANIGUCHI Takaki
—
last modified
2007年10月12日 00時44分
Filed Under:
grantとrevokeの使い方をよく忘れるのでメモ。
- revoke all privileges on * from 'root'@'192.168.1.1';
- grant all privileges on *.* to 'root'@'192.168.1.1' identified by 'hogehogehoge';
2007年07月30日
MySQLが起動しない
by
TANIGUCHI Takaki
—
last modified
2007年07月30日 22時12分
Filed Under:
Fatal error: Can't open and lock privilege tables: Incorrect file format 'host' と出た。
mysqlのdb・host・userを削除してからmysql_install_dbで初期化すればとりあえず治る。壊れたのかなあ。
mysqld --skip-grant-tables で起動するあたりそのあたりなんだろう。
バックアップから持ってくる。ただ、バックアップがonlineで取ったやつなのでこんどは壊れているか言い出すのでmyisamchk -r foo.MYI で復旧させる。

