Monthly Archive: January 2012

Jan 19

How to export Tivoli Directory Server to .ldif file

This script is simply and usefull to backup all users in a tivoli directory server to an ldif file. When schedule by crontab it’s possible to add in command line destination folder by $1 param, so you can have different versions of backup. 1 2 3 4 5 6 7 8 9 10 11 12 …

Continue reading »

Jan 11

Mysql Usefull Commands

Here some usefull command to administer Mysql Database Server: #Access command line: mysql -uroot -upassword #Viev all user: select user,password,host from mysql.user; #Enable root remote login : GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘password'; FLUSH PRIVILEGES; exit; #Execute Mysql command from bash: mysql -uroot -e “create database prod” mysql -uroot -e “CREATE …

Continue reading »