Archive for the ‘OS’ Category

Three ways to recover a root user password: The order of solutions here under gets more creative on the way down :) 1. obviously, before starting messing around check my.cnf or scripts for passwords entries, then try home directories for password files 2. secondly – can you restart mysql? if yes, restart with –skip-grant-tables, log [...]

mysqldump each object separately

Posted: 12th August 2010 by Darren Cassar in Linux, Mac OS, MySQL, OS, Solaris
Tags: , ,

As a continuation to a previous blog post last week and inspired by Kedar I have created a small script to export tables, stored procedures, functions and views into their respective file. It works for multiple databases where you can specify a list of databases too and although things like events, triggers and such are [...]

If you have multiple database servers with strange names, or if you have to hop over multiple machines to connect to any mysql database server, then you know what a pain it can be to administer such a setup. Thanks to some scripting, you can automate such tasks as follows: Create an expect script: /path/to/sshmysql.exp [...]

Make Mac Finder sort folders on top

Posted: 16th December 2009 by Darren Cassar in Mac OS, OS
Tags: , , ,

Once every so often something bugs me enough to look up and here is today’s bugger! Sorting files and folders in Mac’s Finder by type, folders first! In essence: 1. Select Finder, click on Go from the menu bar and select Go to Folder 2. From the dialog box that opens, type: /System/Library/CoreServices/ and press [...]