hi there,

I'm installed mysql on linux I dont have any idea about how to set environment variable and where it to be set
sorry if it is a very basic question but really I dont have any idea.
plz help me.

Hello,

It really depends on what you are setting the variable for. If it is for this session you can use something like this to set the variable TESTVAR equal to Hello and export it to your current shell:

[root@srvr3 ~]# TESTVAR="Hello"; export $TESTVAR
[root@srvr3 ~]# echo $TESTVAR

echo $TESTVAR will tell you if it is set correctly.
To set a variable for every time you log in you have to add it to your .bash_rc file in your home directory.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.