diff options
author | Raymond Danks <raymond@edanks.com> | 2006-07-24 16:17:19 +0000 |
---|---|---|
committer | Raymond Danks <raymond@edanks.com> | 2006-07-24 16:17:19 +0000 |
commit | a1609131d4a87be0fa6d2d397e0ae743d47d6af6 (patch) | |
tree | 10de8013b5a9c62620d8ac0c82c13441a70cfc15 /packages/mysql/files | |
parent | 03ed24fd55e522465ea04368e7b727300ad8d595 (diff) |
mysql - Add my.cnf and server init script.
- Install server database as part of postinst for mysql-server.
Diffstat (limited to 'packages/mysql/files')
-rw-r--r-- | packages/mysql/files/my.cnf | 21 | ||||
-rw-r--r-- | packages/mysql/files/mysqld.sh | 20 |
2 files changed, 41 insertions, 0 deletions
diff --git a/packages/mysql/files/my.cnf b/packages/mysql/files/my.cnf new file mode 100644 index 0000000000..15a8b1b4ab --- /dev/null +++ b/packages/mysql/files/my.cnf @@ -0,0 +1,21 @@ +[client] +#password = password +port = 3306 +socket = /tmp/mysql.sock + +[mysqld_safe] +err-log = /var/log/mysql.err + +[mysqld] +user = mysql +port = 3306 +socket = /tmp/mysql.sock +pid-file = /var/run/mysqld.pid +log-error = /var/log/mysqld.err +basedir = /usr +datadir = /var/mysql +skip-locking +skip-innodb +skip-networking +bind-address = localhost + diff --git a/packages/mysql/files/mysqld.sh b/packages/mysql/files/mysqld.sh new file mode 100644 index 0000000000..c94772e202 --- /dev/null +++ b/packages/mysql/files/mysqld.sh @@ -0,0 +1,20 @@ +# MySQL init script + +. /etc/default/rcS + +case "$1" in + start) + /usr/bin/mysqld_safe & + ;; + stop) + if test -f /var/run/mysqld.pid ; then + PID=`cat /var/run/mysqld.pid` + kill $PID + fi + ;; + *) + echo "Usage: /etc/init.d/mysqld {start|stop}" + ;; +esac + +exit 0 |