Oracle/MySQL °ü·Ã °Ô½ÃÆÇ |
---|
2002/08/05(12:40) from 210.117.182.162 | |
ÀÛ¼ºÀÚ : °ÁÙ±â (jkkang65@hanmail.net) | Á¶È¸¼ö : 3477 , ÁÙ¼ö : 24 |
Re: [MySQL] Booting ½Ã ½ÃÀÛÇϱâ |
---|
You might want to add these start and stop commands to the appropriate places in your `/etc/rc*' files when you start using MySQL for production applications. Note that if you modify `mysql.server', then upgrade MySQL sometime, your modified version will be overwritten, so you should make a copy of your edited version that you can reinstall. If your system uses `/etc/rc.local' to start external scripts, you should append the following to it: /bin/sh -c 'cd /usr/local/mysql ; ./bin/safe_mysqld --user=mysql &' You can also add options for `mysql.server' in a global `/etc/my.cnf' file. A typical `/etc/my.cnf' file might look like this: [mysqld] datadir=/usr/local/mysql/var socket=/var/tmp/mysql.sock port=3306 user=mysql [mysql.server] basedir=/usr/local/mysql The `mysql.server' script understands the following options: `datadir', `basedir', and `pid-file'. |
![]() ![]() ![]() ![]() |
![]() ![]() ![]() |