mysql dies on simple select
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PLD Linux |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[root@angua mysql]# service mysql stop
Stopping MySQL /var/lib/mysql service.
[root@angua mysql]# rm /var/log/mysql/* /var/lib/
[root@angua mysql]# service mysql init
Initializing cluster /var/lib/
Installing MySQL system tables for /var/lib/
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL USERS!
This is done, after starting database, in the order shown,
with:
For 'mysql_sysadmin' (RELOAD and SHUTDOWN privileges):
echo "update mysql.user set password=
For 'mysql' user (ALL privileges, DB admin):
echo "update mysql.user set password=
NOTE: mysql_sysadmin password should be placed to /var/lib/
mysqladmin section. See the manual for more instructions.
(This user is used at logs rotation and server shutdown)
Filling help tables.
[root@angua mysql]# service mysql start
Starting MySQL /var/lib/mysql service.
_sysadmin'; FLUSH PRIVILEGES;" | mysql -u mysql -S /var/lib/
[root@angua mysql]# echo "update mysql.user set password=
[root@angua mysql]# mysqladmin -u mysql --password=
[root@angua mysql]# echo "grant all privileges on poczta.* to poczta@localhost identified by 'poczta'; FLUSH PRIVILEGES;" | mysql -u mysql --password=mysql mysql
[root@angua mysql]# cat /tmp/poczta.dump
CREATE TABLE `exim_greylist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`relay_ip` varchar(64) DEFAULT NULL,
`from_domain` varchar(255) DEFAULT NULL,
`block_expires` datetime NOT NULL,
`record_expires` datetime NOT NULL,
`origin_type` enum('MANUAL'
`create_time` datetime NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE `mailboxes` (
`domain` varchar(255) NOT NULL DEFAULT '',
`username` varchar(255) NOT NULL DEFAULT '',
`passwd` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) NOT NULL DEFAULT '',
`remove_spam` tinyint(4) NOT NULL DEFAULT '0',
`move_
`do_not_
);
INSERT INTO `mailboxes` VALUES ('example.
[root@angua mysql]# mysql -u poczta --password=poczta poczta < /tmp/poczta.dump
[root@angua mysql]# echo 'SELECT * FROM mailboxes;' | mysql -u poczta --password=poczta poczta
ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
[root@angua mysql]# cat /var/log/
InnoDB: The first specified data file /var/lib/
InnoDB: a new database to be created!
090530 17:03:17 InnoDB: Setting file /var/lib/
InnoDB: Database physically writes the file full: wait...
090530 17:03:17 InnoDB: Log file /var/lib/
InnoDB: Setting log file /var/lib/
InnoDB: Database physically writes the file full: wait...
090530 17:03:17 InnoDB: Log file /var/lib/
InnoDB: Setting log file /var/lib/
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
090530 17:03:17 InnoDB: Started; log sequence number 0 0
090530 17:03:17 InnoDB: Starting shutdown...
090530 17:03:19 InnoDB: Shutdown completed; log sequence number 0 46409
090530 17:03:19 [Warning] Forcing shutdown of 1 plugins
090530 17:03:19 InnoDB: Started; log sequence number 0 46409
090530 17:03:19 InnoDB: Starting shutdown...
090530 17:03:20 InnoDB: Shutdown completed; log sequence number 0 46409
090530 17:03:20 [Warning] Forcing shutdown of 1 plugins
090530 17:03:24 InnoDB: Started; log sequence number 0 46409
090530 17:03:24 [Note] Event Scheduler: Loaded 0 events
090530 17:03:24 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.34-log' socket: '/var/lib/
090530 17:05:47 - mysqld got signal 11 ;
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_
read_buffer_
max_used_
max_threads=151
threads_connected=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
thd: 0x8b1a0b8
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0xb489936c thread_stack 0x30000
/usr/sbin/
/usr/sbin/
[0xb80a4400]
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib/libpthread
/lib/libpthread
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8b6a360 = SELECT * FROM mailboxes
thd->thread_id=6
thd->killed=
The manual page at http://
information that should help you find out what is causing the crash.
[root@angua mysql]#
Changed in pld-linux: | |
status: | New → Fix Released |
rpm package version/arch and your distro version?