Description:
MySQL 5.0.84 compiled and installed from ports on FreeBSD 7.1 RELEASE (i386) with default options.
I delete /var/db/mysql. No my.cnf elsewhere. /etc/rc.conf contains only mysql_enable="yes", no parameters.
I run mysql_install_db --user=mysql:
-----------------------------------------------------------------------
WARNING: The host 'www-int2' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
090820 13:49:36 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090820 13:49:36 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
090820 13:49:36 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090820 13:49:36 [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/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h www-int2 password 'new-password'
Alternatively you can run:
/usr/local/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/local ; /usr/local/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/local/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
-----------------------------------------------------------------------
First thing that disturbs me is max_join_size: unsigned value 18446744073709551615. Where does this come from?
Anyway, creating database and tables in default engine works. But Mysql crashes when I try to create some InnoDB table:
mysql> create table something ( somethingelse int(1) ) ENGINE=InnoDB;
ERROR 2013 (HY000): Lost connection to MySQL server during query
/var/db/mysql/www-int2.err:
-----------------------------------------------------------------------
090820 13:55:03 mysqld started
090820 13:55:03 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090820 13:55:03 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
090820 13:55:03 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
090820 13:55:04 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
090820 13:55:04 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
090820 13:55:04 InnoDB: Started; log sequence number 0 0
090820 13:55:04 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.84' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-server-5.0.84
090820 13:58:02 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=8384512
read_buffer_size=131072
max_used_connections=1
max_connections=100
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 225787 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
090820 13:58:02 mysqld restarted
090820 13:58:02 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
090820 13:58:02 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
090820 13:58:02 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
090820 13:58:02 - mysqld got signal 4 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_size=0
read_buffer_size=131072
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 217599 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
090820 13:58:02 mysqld ended
-----------------------------------------------------------------------
How to repeat:
Install FreeBSD (7.1, i386), Mysql (5.0.84) from ports. Run: create table something ( somethingelse int(1) ) ENGINE=InnoDB;
Suggested fix:
No clue.