diff options
Diffstat (limited to 'files/config')
-rw-r--r-- | files/config/CentOS/setmysqlpass.sh | 2 | ||||
-rw-r--r-- | files/config/my.cnf | 3 | ||||
-rw-r--r-- | files/config/my.cnf.Gentoo | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/files/config/CentOS/setmysqlpass.sh b/files/config/CentOS/setmysqlpass.sh index f4fbe12..6d17fd9 100644 --- a/files/config/CentOS/setmysqlpass.sh +++ b/files/config/CentOS/setmysqlpass.sh @@ -4,7 +4,7 @@ test $# -gt 0 || exit 1 /sbin/service mysqld stop -/usr/libexec/mysqld --skip-grant-tables --user=root & +/usr/libexec/mysqld --skip-grant-tables --user=root --datadir=/var/lib/mysql --log-bin=/var/lib/ & sleep 5 echo "USE mysql; UPDATE user SET Password=PASSWORD('$1') WHERE User='root' AND Host='localhost';" | mysql -u root killall mysqld diff --git a/files/config/my.cnf b/files/config/my.cnf index 6d3efc6..b3c1f0b 100644 --- a/files/config/my.cnf +++ b/files/config/my.cnf @@ -1,5 +1,6 @@ [mysqld] -datadir=/var/lib/mysql +datadir=/var/lib/mysql/data +log-bin=/var/lib/mysql 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). diff --git a/files/config/my.cnf.Gentoo b/files/config/my.cnf.Gentoo index b51ec21..de2e2b7 100644 --- a/files/config/my.cnf.Gentoo +++ b/files/config/my.cnf.Gentoo @@ -51,7 +51,8 @@ socket = /var/run/mysqld/mysqld.sock pid-file = /var/run/mysqld/mysqld.pid log-error = /var/log/mysql/mysqld.err basedir = /usr -datadir = /var/lib/mysql +datadir = /var/lib/mysql/data +log-bin = /var/lib/mysql skip-locking key_buffer = 16M max_allowed_packet = 1M |