Reset mysql root password

mysql reset password

Steps to reset the mysql root password Step # 1 : Stop mysql service # /etc/init.d/mysql stop Step # 2: Start to MySQL server w/o password: # mysqld_safe –skip-grant-tables Step # 3: Connect to mysql server using mysql client: # mysql -u root Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL … Read more

Email alert on disk space outage in linux

disk alert in linux

For Send mail Tutorial Click Here Need to be installed sendmail ( yum install sendmail) and mailx (yum install mailx) Create a shell script in linux. vi diskalert.sh #!/bin/sh support=”itsupport@xyz.com” # set alert level 90% is default ALERT=90 df -HP | grep -vE ‘^Filesystem|tmpfs|cdrom’ |   while read partition size used free perc mnt ; … Read more

MongoDB : introduction to MongoDB

mongoDB

MongoDB is an  is a cross-platform open-source document database, and the leading NoSQL database. Written in C, C++ and Java script . MongoDB features: 1. Document-Oriented Storage » JSON-style documents with dynamic schemas offer simplicity and power. 2. Ad hoc queries MongoDB supports search by field, range queries, regular expression searches. Queries can return specific fields of documents and also … Read more

MySQL Master-Master-Slave-Slave Replication

Here we are going to create a Master -> Master -> Slave -> Slave replications architecture. I am expecting here , you have MySQL installed and set-up as normal.       Master 1 will be known as Master 1 and Slave 2 with IP 10.1.1.1 Master 2 will be known as Master 2 and Slave 1 … Read more

Asterisk Subroutine Call : Pre-Dial Handlers

asterisk subroutine

Pre-dial handlers allow you to execute a dialplan subroutine on a channel before a call is placed but after the application performing a dial action is invoked. This means that the handlers are executed after the creation of the caller/callee channels, but before any actions have been taken to actually dial the callee channels. You … Read more

Asterisk Manager API Action Redirect : Asterisk Call transfer

Action: Redirect Synopsis: Redirect (transfer) a call Privilege: call,all Description: Redirect (transfer) a call. Variables: (Names marked with * are required) Channel: Channel to redirect ExtraChannel: Second call leg to transfer (optional) Exten: Extension to transfer to Context: Context to transfer to Priority: Priority to transfer to ActionID: Optional Action id for message matching. Example: … Read more