Archive

Posts Tagged ‘howto’

Disabling MySQL Foreign Key Constraints Checks

August 27th, 2009 Flo No comments

Today I had to update lots of rows in a table with a lot of foreign key constraints. The first try was to delete all records and insert the updated data resulting in:

Cannot delete or update a parent row: a foreign key constraint fails (`foo/bar`, CONSTRAINT `FKED8DCCEF810F075A` FOREIGN KEY (`widget_id`) REFERENCES `widget` (`id`))

Instead of dropping all constraints, inserting the data and adding them again afterwards, there’s another more convenient method:

You can disable the foreign key checks with:

SET FOREIGN_KEY_CHECKS = 0

Enabling them again afterwards:

SET FOREIGN_KEY_CHECKS = 1

Categories: howto Tags: ,

T61p Ubuntu Enable Trackpoint Scrolling

March 8th, 2009 Flo No comments

Nach kurzem Arbeiten mit Ubuntu habe ich festgestellt, dass mein geliebter Trackpoint nicht ganz so funktioniert.

Leider kann man standardmäßig nicht mit der dritten Maustaste + Trackpoint scrollen.

Nach kurzer Recherche hier die Lösung: http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.04_on_a_ThinkPad_X41

Categories: Allgemein, howto Tags: , ,

Ubuntu wiederherstellen

March 8th, 2009 Flo No comments

Als bei meinem Versuch die IBM Recovery Suite zu installieren mein System aufeinmal nicht mehr bootete habe ich es klassisch mit fixmbr wiederhergestellt.

Leider ging dabei auch mein GRUB bootloader verloren. Es gibt aber einen einfachen und sicheren Weg das wiederherzustellen: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

Categories: Allgemein, howto Tags: , ,