2009年12月12日土曜日

Slax mysql-bugreport.002

root@slax:~# groupadd mysql
groupadd: group mysql exists
root@slax:~# cp /etc/my-medium.cnf /etc/my.cnf
root@slax:~# cat /etc/my.cnf |perl -e ' foreach () { s/\[mysql\]\n/\[mysql\]\ndefault-character-set=utf8\n/ig; print; } ' > /etc/my.cnf
syntax error at -e line 1, near "() "
syntax error at -e line 1, near "; }"
Execution of -e aborted due to compilation errors.
root@slax:~# cat /etc/my.cnf |perl -e ' foreach () { s/\[mysqld\]\n/\[mysqld\]\ndefault-character-set=utf8\n/ig; print; } ' > /etc/my.cnf
syntax error at -e line 1, near "() "
syntax error at -e line 1, near "; }"
Execution of -e aborted due to compilation errors.
root@slax:~# cat /etc/my.cnf |perl -e ' foreach () { s/\[client\]\n/\[client\]\ndefault-character-set=utf8\n/ig; print; } ' > /etc/my.cnf
syntax error at -e line 1, near "() "
syntax error at -e line 1, near "; }"
Execution of -e aborted due to compilation errors.
root@slax:~# ln -s /var/run/mysql/mysql.sock /tmp/mysql.sock
root@slax:~# /usr/bin/mysql_install_db --datadir=/mnt/sda1/tmp/
Installing MySQL system tables...
091212 1:31:23 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
091212 1:31:23 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
091212 1:31:23 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
091212 1:31:23 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h slax password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
root@slax:~# chown mysql /mnt/sda1/tmp/*
root@slax:~# chown mysql /mnt/sda1/tmp/mysql/*
root@slax:~# /usr/share/mysql/mysql.server start --datadir=/mnt/sda1/tmp/
Starting MySQL............. ERROR! Manager of pid-file quit without updating file.
root@slax:~# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (111)
root@slax:~#

0 件のコメント: