datentraeger

geistige Umweltverschmutzung

MySQL Search & Replace

November 17, 2015 Database SQL

Nach einer Migration von Windows AD auf Samba4 hatte ich eine DB, die noch mit vielen alten DNs bestückt war. Das lässt sich aber mit einem Query ganz bequem anpassen:

mysql> UPDATE ldap_users SET ldap_dn = replace(ldap_dn, "ou=Users,dc=neuedomain,dc=local", "ou=Benutzer,dc=altedomain,dc=local");
Query OK, 28 rows affected (0.00 sec)

Windows DHCP-Server in Samba4-Domäne autorisieren

It was never going to work, so let’s have some tea

Search
Posts
  • Paperless
  • OTP Client Mobile / Desktop
  • Fuck Outlook
  • Kopano. IMAP. WTF ?!
  • Chelsea Wolfe und Converge
Archives
Categories
Tags
Android Apple Arch BBOS/QNX cli conky Container Database Debian/GNU Linux Docker foo.li FSFE fvwm git Gnome Gnusocial Groupware irc IT Java LaTeX lvm Mail Mobile Movies Multimedia Music Nonsense Office Packaging PHP Puppet Redmine SQL Think-About Uncategorized Vaping vim Virtualisierung Web Win WTF www-links X11 XMPP
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Blogroll
  • Datentraeger Pics
  • foo.li systeme + software
  • GnuSocial.li
Proudly powered by WordPress | Theme: Doo by ThemeVS.