fixed log-bin location
This commit is contained in:
parent
c7752a3775
commit
7c987d7fe6
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue