Results 1 to 2 of 2
Hi,
How to set variable for remote mysql? Mysql server is on linux and ip is 172.16.30.20. I want to install crystal report on server A and mysql is server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-12-2013 #1Just Joined!
- Join Date
- Nov 2012
- Posts
- 24
Mysql Environment Variable
Hi,
How to set variable for remote mysql? Mysql server is on linux and ip is 172.16.30.20. I want to install crystal report on server A and mysql is server B which ip is 172.16.30.20 and keep asking environment variable. Anyone knows how?
Thanks.
- 03-14-2013 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,695
Hi,
Perhaps you need to set the MYSQL_HOME variable, which points to your location of my.cnf, see an explanation here.
to set a variable, you can just do this in a terminal:
The location of your my.cnf file might be different.Code:export MYSQL_HOME=/etc/my.cnf
You can put this command in a login script for the current user, so it is automatically set at login. For example, you can use ~/.bashrc.


Reply With Quote
