fixed log-bin location

This commit is contained in:
mh 2008-07-13 14:19:37 +00:00
parent c7752a3775
commit 7c987d7fe6
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ test $# -gt 0 || exit 1
/sbin/service mysqld stop
/usr/libexec/mysqld --skip-grant-tables --user=root --datadir=/var/lib/mysql --log-bin=/var/lib/ &
/usr/libexec/mysqld --skip-grant-tables --user=root --datadir=/var/lib/mysql --log-bin=/var/lib/mysql/mysql-bin &
sleep 5
echo "USE mysql; UPDATE user SET Password=PASSWORD('$1') WHERE User='root' AND Host='localhost';" | mysql -u root
killall mysqld

View file

@ -1,6 +1,6 @@
[mysqld]
datadir=/var/lib/mysql
log-bin=mysql-bin
log-bin=/var/lib/mysql/mysql-bin
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).