/home/drscream

  • home
  • blog
  • gallery
  • studies
  • about
  • MySQL5 Snow Leopard prefPane

    Ich habe mir gerade MySQL5 unter Snow Leopard installiert, dazu habe ich mir einfach das MySQL.dmg Paket von der MySQL Seite genommen. Da ich einen Core2Duo habe natuerlich das 64bit Paket. *klick klick klick* und fertig ist die Sache.

    dolphin

    Da ich gerne in meinen Systemeinstellungen / prefPane so ein tolles MySQL Icon haben moechte, womit ich den “mysqld” starten und stoppen kann, habe ich mir das mitgelieferte MySQL.prefPane installiert.
    Dummerweise wird das ganze nur in 32bit mitgeliefert somit muss sich die Systemeinstellung immer zweimal laden. Mit ein bisschen Googlen bin ich aber auf eine coole Loesung gestossen, jemand hat das MySQL.prefPane einfach fuer 64bit kompiliert und bietet das auf seiner Website an.

    MySQL.prefPane | MySQLStartup source code

    Posted

    November 9, 2009

    Tags

    64bit, macosx, mysql, mysql5, prefpane, snow leopard

  • Munin, MySQL graph

    It takes some time to found out how the munin mysql plugin works. Here is an easy step by step how to:

    1. Create a MySQL user with a password that has NOT granted privilege.
    2. Edit the file: /etc/munin/plugin-conf.d/munin-node
    3. Put this into the file:
      [mysql*]
        user root
        group wheel
        env.mysqladmin /usr/bin/mysqladmin
        env.mysqlopts -u [SQL_Username] -p[SQL_Password]
      

    4. Edit the two variables [SQL_Username] and [SQL_Password]. Note that there is NO space between -p and the password.

    Now have a cup of coffee, wait some time and chill … now you see nice MySQL graphs in Munin

    Posted

    July 1, 2009

    Tags

    graph, munin, mysql, rrdtool

    1 comment

  • mysqldump altes “INSERT INTO”-Format

    Um das alte “INSERT INTO”-Format von mysqldump wieder zu bekommen muss man einfach nur eine Option auf FALSE setzen. Hier erstmal zum Vergleich, das neue und das alte mysqldump-Format:

    Alter mysqldump:

    INSERT INTO tabelle (Feld1, Feld2, Feld3) VALUES (val1-1, val1-2, val1-3);
    INSERT INTO tabelle (Feld1, Feld2, Feld3) VALUES (val2-1, val2-2, val2-3);

    Neuer mysqldump:

    INSERT INTO tabelle (Feld1, Feld2, Feld3) VALUES ((val1-1, val1-2, val1-3),(val2-1, val2-2, val2-3));

    Um das alte mysqldump-Format zu bekommen muss man einfach folgenden Parameter verwenden:

    --extended-insert=FALSE

    Posted

    June 27, 2009

    Tags

    mysql, mysqldump