libdbd-mysql-perl and mysql-server-5.0.19-3 problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libdbd-mysql-perl (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Whenever I'm accessing mysql through libdbd-mysql-perl in a perl/CGI app, the database dies. In the past, I have been able to get things working by shutting down mysql, removing the libdbd-mysql-perl library, re-downloading and reinstalling it, then restarting the mysql server, and in a while loop watching the mysql.sock file with a simple ls -l. However, that appears not to be a working jerry-rig anymore.
Here are the messages in my apache error log:
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] DBD::mysql::st execute failed: Lost connection to MySQL server during query at /usr/lib/
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] Can't call method "numrows" on an undefined value at /usr/local/
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] Compilation failed in require at ../GlobalConfig.pl line 35., referer: http://
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] Compilation failed in require at ./Config.pl line 4., referer: http://
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] Compilation failed in require at /usr/local/
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] Premature end of script headers: TerminalAuditRe
[Fri Apr 28 07:30:08 2006] [error] [client 10.254.254.4] script not found or unable to stat: /usr/local/
Here is the list of relevant installed packages:
ii libdbd-mysql-perl 3.0002-2build1 A Perl5 database interface to the MySQL data
ii libmysqlclient10 3.23.56-3 LGPL-licensed client library for MySQL datab
ii libmysqlclient12 4.0.24-10ubuntu2 mysql database client library
ii libmysqlclient14 4.1.15-1ubuntu5 mysql database client library
ii libmysqlclient15off 5.0.19-3 mysql database client library
ii mysql-admin 1.1.6-1build1 GUI tool for intuitive MySQL administration
ii mysql-admin-common 1.1.6-1build1 Architecture independent files for MySQL Adm
ii mysql-client-5.0 5.0.19-3 mysql database client binaries
ii mysql-common 5.0.19-3 mysql database common files (e.g. /etc/mysql
ii mysql-navigator 1.4.2-6 GUI client program for MySQL database server
ii mysql-query-browser 1.1.17-5ubuntu2 Official GUI tool to query MySQL database
ii mysql-query-
ii mysql-server 5.0.19-3 mysql database server (current version)
ii mysql-server-5.0 5.0.19-3 mysql database server binaries
Finally, as you can see, the mysql.sock file *does* go away:
srwxrwxrwx 1 mysql mysql 0 2006-04-28 07:55 /var/run/
srwxrwxrwx 1 mysql mysql 0 2006-04-28 07:55 /var/run/
srwxrwxrwx 1 mysql mysql 0 2006-04-28 07:55 /var/run/
srwxrwxrwx 1 mysql mysql 0 2006-04-28 07:55 /var/run/
srwxrwxrwx 1 mysql mysql 0 2006-04-28 07:55 /var/run/
ls: /var/run/
ls: /var/run/
ls: /var/run/
ls: /var/run/
ls: /var/run/
The query is a simple select:
select doc_uri from help_system_
Is there anything else I can examine to find out *exactly* what's going wrong and where the problem is?
Thank you!
--Jason
I got it to work this time by:
1. dpkg --force-all -P libdbd-mysql-perl apt/archives/ libdbd- mysql-perl_ 3.0002- 2build1_ i386.deb mysqld/ mysqld. sock; echo; ps auxw | grep mysql; done
2. rm /var/cache/
3. apt-get install libdbd-mysql-perl
4. /etc/init.d/mysql stop
5. /etc/init.d/mysql start
6. while [ 1 ]; do ls -l /var/run/
7. run the CGI
Thanks!