Archive

Archive for the ‘mysql’ Category

fix mysql relay log

February 2, 2009 varnit Leave a comment
  • SHOW SLAVE STATUS //note relay_master_log_pos and exec_master_log_pos
  • SLAVE STOP
  • CHANGE MASTER TO MASTER_LOG_FILE=[relay_master_log_pos value], MASTER_LOG_POS=[exec_master_log_pos]
  • SLAVE START
Categories: mysql Tags:

mysql command line client prompt

August 22, 2008 varnit Leave a comment

I usually like to change the default mysql client prompt to user@hostname:dbname >. Open my.cnf and replace prompt = “” with

prompt = “\u@\h:\d >”

Categories: mysql

mysql command line autocomplete rescan/enable

November 8, 2007 varnit Leave a comment

mysql>\#

Categories: mysql

Impossible WHERE noticed after reading const tables

October 24, 2007 varnit Leave a comment

MySQL has read all const (and system) tables and notice that the WHERE clause is always false.

Categories: mysql