Показать сообщение отдельно
Старый 05.03.2012, 07:21   #2
l1ght
 
Аватар для l1ght
 
Регистрация: 04.07.2010
Сообщений: 32
Репутация: 32
По умолчанию

Цитата:
However, if you write my.cnf in DATADIR it will work!
и почему конфиг должен грузиться из @datadir?

Код:
root@sds3 /var/lib/mysql # ls -lia my.cnf
6930768 -rw-rw-rw- 1 mysql mysql 42 2012-03-05 05:59 my.cnf

root@sds3 /var/lib/mysql # cat my.cnf
[mysqld]
 plugin_dir = /tmp 

root@sds3 /var/lib/mysql # /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
mysql start/running, process 30158

root@sds3 /var/lib/mysql # mysql -uroot -ppwd
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 991
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create function sys_exec returns int soname 'lib_mysqludf_sys.so';
ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_sys.so' (errno: 22 /usr/lib/mysql/plugin/lib_mysqludf_sys.so: cannot open shared object file: No such file or directory)
l1ght вне форума   Ответить с цитированием