About Mario Bucsics Expertise Since 5 Yearīs iīm working with Unix Systems an Oracle Databases and now i am going to take the Solaris Certification. You can ask me any question about Oracle and Solaris ( especially Solaris 2.6 ) but please donīt ask me anything about Microsoft Products.
Experience
Past/Present clients One of my biggest clientīs is the 2nd and best Telecommunication Company in Vienna ( max.mobil ). I was also involved in the startup phase at www.lion.cc which is the greatest e-commerce company in austria.
Expert: Mario Bucsics Date: 12/3/2000 Subject: PATH environment variable
Question I am operating a "virtual server" account on a SunOS 5.7 system. The hosting company provides a "shared MySQL" server which is shared by all the virtual servers on the system. Accordingly they allocate one only database per virtual server. Therefore to create more than one database it is necessary to install a separate copy of MySQL. This is the task at hand.
I have unpacked a MySQL binary kit into a directory in my server root.
The MySQL install instructions say that I need to add this directory to the PATH environment variable. Unfortunately I haven't got a clue how to go about this, especially in the context of this "virtual server" environment where I don't have access to root.
I had a poke around the unix docs and would expect that normally this would be done by editing some sort of system start up script using a command like setenv. Or perhaps the path can be set using some APACHE configuration directive? (Each virtual server has access to its own APACHE config files).
I realize that this is all a bit vague but would appreciate any short comment that might help me see more clearly the likely direction I should take.
Thanks again,
wm
MySQL manual sez:
>This directory contains client programs and the server You should add the full pathname of this directory to your PATH environment variable so that your shell finds the MySQL programs properly. See section A Environment Variables.
Answer Hello !
If you would like to add the path to all users on the system edit the /etc/profile and add the following entry:
PATH=$PATH:MYSQLPATH
if you decide to add the path only to a specifiy user, you can to this by editing the users profile as shown bellow: