Syndicate content

Linux

Setting up Database Replication in MySQL

in

MySQL replication can help you to create an identical copy of a database located on the master database server on a slave server. Not just that, replicating the server will also mean that any updates applied to the database on master server will automatically be applied in a seamless manner to the database on the slave server as well

W' commands in Linux

in

Before writing this article I had a funny realization that a linux or a unix shell has so much power in it that none of us can claim that he knows it all. There is always something new to learn of hear about.

These are few examples which many of you may but was a strange discovery for me.

W - This command is equivalent to looking at the task manager user tab in windows. It shows all people who are connected to the Linux shell and the last command execute by them. Handy command to use in server client architecture.

Perl Notes: Variables

in

PERL is Practical Extraction and Report Language and is best used for data manipulations and operations. Here we take a look a some of it's Variables

Variables in Perl must begin with aA_ (i.e lower case alpha,upper case alpha or an underscore)
CANNOT define a variable starting with numeric/digits.
There are three Data types in Perl. (Data types are raw data stored in a variable.)

* Scalar
* Array
* Hash

Global Variables

Global Variables once declared is available through out the scripts.