Fatal error: Maximum execution time of 300 seconds exceeded under MySQL CLI

I received this error a few times, and variations of it, when trying to import some sql at the command prompt (CLI).

ERROR 1064 (42000) at line 3499917: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘Fatal error: Maximum execution time of 300 seconds exceeded in /usr/share/phpmyadmin/libraries/export/sql.php on line 757

Lots of googling kept pointing to changing the maximum execution time of Apache or PHP, by default Apache is 300 seconds (as per my error) and PHP 30 seconds. It didn’t make sense as I was doing am import at the CLI, which doesn’t use Apache or PHP. The mistake I made was using phpmyadmin to export the sql file I was trying to import. Despite the sql file downloading correctly from phpmyadmin and not reporting any errors, the last lines in my sql file was

[End of file snippet ...]
(3566987, 1225461, 4, 52530, ‘2009-05-00′),
(3566988, 1225464, 4, 52530, ‘2009-05-00′),
(3566989, 1577089, 4, 4422, ‘2009-05-00′),
(3566990, 1762231, 8, 4422, ‘2009-05-00′),
(3566991, 1768654, 8, 4422, ‘2009-05-00′)<br />
<b>Fatal error</b>:  Maximum execution time of 300 seconds exceeded in <b>/usr/share/phpmyadmin/libraries/export/sql.php</b> on line <b>757</b><br />

The solution is of course to do things properly and use mysqldump -u [USERNAME] -p [DATABASE NAME] [TABLE] > [OUTPUT FILE NAME].sql.

Leave the first comment

1969 Triumph T120

1969_Triumph_T120_front
1969_Triumph_T120_rear
1969_Triumph_T120_left
1969_Triumph_T120_right

Leave the first comment

Datsun Fairlady Roadster 2000 SR311

I think it’s the SR311 I want, not the 310, either way…

Fairlady Roadster

Leave the first comment

Nissan Skyline KPGC10

KPGC10
KPGC10
KPGC10

KPGC10

Alan’s GTR  – images from http://www.japanesenostalgiccar.com/forum/viewtopic.php?t=3260

KPGC10 GTR
KPGC10 GTR
KPGC10 GTR
KPGC10 GTR

Leave the first comment

Things to nail on guitar, list

Another pointless list, but I’m terribly forgetful…

Half the world away
Little wing
She’s electric
Fast cars

Leave the first comment

Dream Garage, list

My dream garage posts take too long to build, so this is a repository of vehicles I need to add to it. No order of priority/desire, just a list.

Sunbeam S7

BSA Goldstar or similar, like Nicks bike

Kawasaki ZX-10R

Kawasaki ZX-12R

Harley Davidson WLC

Old shape ltd ed Speed Triple

Edwards Rep Mille

Hayabusa

More to follow …

Leave the first comment

Reference.svcmap Source Error [No relevant source lines]

Had an annoying bug writing a WCF service. If the service was hosted on the same server as the IIS6 ASPX site that consumed it I got the following error:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Reference.svcmap: Specified argument was out of the range of valid values.
Parameter name: site

Source Error:

[No relevant source lines]


Source File: /App_WebReferences/MyServiceReference

Really no help whatsoever. There are two solutions, firstly  you could generate a proxy for the service like

  1. svcutil MyService.dll
  2. svcutil *.wsdl *.xsd /language:C# /namespace:*, MyService
  3. Move the generated CS to the App_Code folder
  4. Remove the Web_References folder entirely

Secondly update your .net framework from 3.5 to 3.5 SP1! This bug has been cleared up in SP1 and totally avoids the problem.

http://www.microsoft.com/net/Download.aspx

2 comments so far, add yours

BBC iPlayer installs fine but won’t run / start

This has been driving me mad for about 4 months, having to resort to downloading tv to my laptop. I found the problem tonight! The KService would not run, this was because BBC and 4oD were conflicting!

Turns out the Channel 4oD service uses the same Kontiki software as the BBC iPlayer. I had uninstalled and reinstalled the iPlayer to no avail many times. This is what I did to fix it:

  • From Windows Task Manager stop the KService and KHost processes.
  • From Control Panel uninstall the BBC iPlayer and the 4oD player.
  • Navigate to C:\Program Files\Kontiki and delete all the contents of the folder.
  • Install the iPlayer.
  • In task manager KService now runs, I had to start the iPlayer manually and tada now when I click download it works!
Leave the first comment

Install Windows (MSN) Messenger Live under Server 2003 / 2008

I bumped into a nice guide/rant on how to do this. It’s available here but a lot of rant and not a lot of instructions.

What you need to do is go to

http://www.techspot.com/downloads/29-windows-live-messenger.html

and grab the Messenger install. Basically the Windows Live installer is the only part not compatible with server 03, so if you just get this it all works fine.

Leave the first comment

Problem starting Apache service for Subversion

I reconfigured our Subversion install last night, and the Apache service wouldn’t start. The event viewer said

The Apache service named  reported the following error:
>>> SVNParentPath takes one argument, specifies the location in the filesystem whose subdirectories are assumed to be Subversion repositories.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

The problem was I had specified

C:\Production Source\

as our repository, this has a space in it, so in

C:\Program Files\CollabNet Subversion Server\httpd\conf\httpd.conf

I modified

<Location /svn>
DAV svn
SVNParentPath “C:\Production Source\ORS2\Repository”
</Location>

Putting the quotes around the parent path. Silly problem, easy fix.

2 comments so far, add yours
Get Adobe Flash playerPlugin by wpburn.com wordpress themes