lunatechian (lunatech-ian)

one relating to, belonging to, or resembling lunatech

My tshirt for today

This tshirt is from a city called Weed, in the state of (where else) California. The town of Weed gets its name from the founder of the local lumber mill, Abner Weed. No sublimal messages have been hidden in the tshirt.
My tshirt for today
Cheers :-)

My humble beginnings towards my goals

The gardening bug has bitten us and we have planted a few plants in our patio. The plants have survived for a few days and I have high hopes now. These are my humble beginnings as I work towards my long term goal of becoming a farmer.

My humble beginnings towards my goals

a bag of tips

When you require a fake US address, use the one below. It should clear validity filters
123 Fake Street
Compton, CA - 90222

In linux, to find files modified today, use find . -mtime -1 \! -type d -exec ls -l {} \;

Overheard

Overheard at Victoria's Secret sale event, near a huge stack of panties, during their underwear sale event - "wow these are huge". The speaker was a woman holding up a pair.

Overhead in a TV serial - "They destroyed my roses. Eat lead, you bastards"

Defined tags for this entry:

mysql startup debugging tip

If you are not able to start the mysql daemon repeatedly using your linux distribution init scripts and you are ready to pull out your hair in frustration, here is a tip that might help you in finding the problem.

Try running the mysqld_safe from the command line (without using the init scripts). Try running /usr/bin/mysqld_safe -v, which should spit out some debugging information.

If that fails, try calling the mysqld daemon directly from the command line, with the "-v" option . mysqld is usually present under /usr/sbin/mysqld. mysqld can be called with --print-defaults to get the command line options it would be run with.

/usr/sbin/mysqld would have been started with the following arguments: --user=mysql --pid-file=/var/run/mysqld/mysqld.pid ..... --max_binlog_size=100M

Try adding the -v option to these options to get more verbose details. When run from command line, mysqld will not detach from console and will print debugging info that might be useful in finding the cause of the error.

I suggest using 3 terminals to figure out what is going on

  • one terminal with tail -f /var/log/mysql/mysqld.err
  • one terminal with tail -f /var/log/messages
  • one terminal where I ran the mysqld_safe / mysqld command

The init scripts are usually good for day to day work. However, sometimes the init scripts can impede a innodb crash recovery process on a large database. Some init scripts have timeout built into them and they can kill mysql while the innodb is still trying to recover its tables.

Defined tags for this entry: , ,