InnoDB: Unable to lock ./ibdata1, error: 22
Добавлено: 2008-10-30 17:10:52
MySQL ставил не раз, но сейчас ничего не понимаю.
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports ... 1.28_1.tbz
успешно установилась
mysql_install_db
успешно
cd /var/db/mysql/
chmod 770 mysql
chmod 770 test
ls -lh
total 4
drwxrwx--- 2 root mysql 71B Oct 30 16:20 mysql
drwxrwx--- 2 root mysql 2B Oct 30 15:55 test
ls -lh /var/db/
total 14
.....................
drwxrwxr-x 4 root mysql 4B Oct 30 16:48 mysql
.....................
echo mysql_enable="YES" >> /etc/rc.conf
/usr/local/etc/rc.d/mysql-server start
081030 16:56:36 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
InnoDB: Unable to lock ./ibdata1, error: 22
081030 16:56:36 InnoDB: Operating system error number 22 in a file operation.
InnoDB: Error number 22 means 'Invalid argument'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/ ... codes.html
InnoDB: Error in creating or opening ./ibdata1
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
081030 16:56:36 [ERROR] Plugin 'InnoDB' init function returned error.
081030 16:56:36 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
081030 16:56:36 [Note] Event Scheduler: Loaded 0 events
081030 16:56:36 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.28-rc' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.1.28_1
ls -lh
total 8
-rw-rw---- 1 mysql mysql 1.2K Oct 30 16:56 hostname.err
-rw-rw---- 1 mysql mysql 6B Oct 30 16:56 hostname.pid
-rw-rw---- 1 mysql mysql 0B Oct 30 16:56 ibdata1
drwxrwx--- 2 root mysql 71B Oct 30 16:20 mysql
drwxrwx--- 2 root mysql 2B Oct 30 15:55 test
Тейблспейсы иннодбшные не создает
делал так /usr/local/libexec/mysqld --user=mysql --datadir=/var/db/mysql
ожидал http://dev.mysql.com/doc/refman/5.1/en/innodb-init.html
получил
InnoDB: Unable to lock ./ibdata1, error: 22
081030 17:02:41 InnoDB: Operating system error number 22 in a file operation.
InnoDB: Error number 22 means 'Invalid argument'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/ ... codes.html
InnoDB: Error in creating or opening ./ibdata1
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
081030 17:02:41 [ERROR] Plugin 'InnoDB' init function returned error.
081030 17:02:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
081030 17:02:41 [Note] Event Scheduler: Loaded 0 events
081030 17:02:41 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.28-rc' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.1.28_1
Где косяк?
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports ... 1.28_1.tbz
успешно установилась
mysql_install_db
успешно
cd /var/db/mysql/
chmod 770 mysql
chmod 770 test
ls -lh
total 4
drwxrwx--- 2 root mysql 71B Oct 30 16:20 mysql
drwxrwx--- 2 root mysql 2B Oct 30 15:55 test
ls -lh /var/db/
total 14
.....................
drwxrwxr-x 4 root mysql 4B Oct 30 16:48 mysql
.....................
echo mysql_enable="YES" >> /etc/rc.conf
/usr/local/etc/rc.d/mysql-server start
081030 16:56:36 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
InnoDB: Unable to lock ./ibdata1, error: 22
081030 16:56:36 InnoDB: Operating system error number 22 in a file operation.
InnoDB: Error number 22 means 'Invalid argument'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/ ... codes.html
InnoDB: Error in creating or opening ./ibdata1
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
081030 16:56:36 [ERROR] Plugin 'InnoDB' init function returned error.
081030 16:56:36 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
081030 16:56:36 [Note] Event Scheduler: Loaded 0 events
081030 16:56:36 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.28-rc' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.1.28_1
ls -lh
total 8
-rw-rw---- 1 mysql mysql 1.2K Oct 30 16:56 hostname.err
-rw-rw---- 1 mysql mysql 6B Oct 30 16:56 hostname.pid
-rw-rw---- 1 mysql mysql 0B Oct 30 16:56 ibdata1
drwxrwx--- 2 root mysql 71B Oct 30 16:20 mysql
drwxrwx--- 2 root mysql 2B Oct 30 15:55 test
Тейблспейсы иннодбшные не создает
делал так /usr/local/libexec/mysqld --user=mysql --datadir=/var/db/mysql
ожидал http://dev.mysql.com/doc/refman/5.1/en/innodb-init.html
получил
InnoDB: Unable to lock ./ibdata1, error: 22
081030 17:02:41 InnoDB: Operating system error number 22 in a file operation.
InnoDB: Error number 22 means 'Invalid argument'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/ ... codes.html
InnoDB: Error in creating or opening ./ibdata1
InnoDB: Could not open or create data files.
InnoDB: If you tried to add new data files, and it failed here,
InnoDB: you should now edit innodb_data_file_path in my.cnf back
InnoDB: to what it was, and remove the new ibdata files InnoDB created
InnoDB: in this failed attempt. InnoDB only wrote those files full of
InnoDB: zeros, but did not yet use them in any way. But be careful: do not
InnoDB: remove old data files which contain your precious data!
081030 17:02:41 [ERROR] Plugin 'InnoDB' init function returned error.
081030 17:02:41 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
081030 17:02:41 [Note] Event Scheduler: Loaded 0 events
081030 17:02:41 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.28-rc' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.1.28_1
Где косяк?