random1 Posted January 13, 2015 Share Posted January 13, 2015 I'm running the latest version of MySQL on Windows 7 64-bit. It working fine and set up correctly. I'd like to use ENVIRONMENT VARIABLES or a variable like "%current_directory%" or "..\%current_directory%" in the configuration files for MySQL, my.ini. Is this possible? Is my.ini a parsed file, can variables be define and used in it? Help would be much appreciated Quote Link to comment Share on other sites More sharing options...
random1 Posted January 16, 2015 Author Share Posted January 16, 2015 (edited) Hmm... I've worked out the syntax: ${VARIABLE} but it only partially works. :S Edited January 16, 2015 by random1 Quote Link to comment Share on other sites More sharing options...
CroNiX Posted January 16, 2015 Share Posted January 16, 2015 Is there a good reason why you need to store these variables in my.cnf and apache.conf, instead of in your app? Quote Link to comment Share on other sites More sharing options...
random1 Posted January 20, 2015 Author Share Posted January 20, 2015 The aim is to make my.cnf generic so that it can be more easily deployed to other network environments. I'm also trying to avoid creating a "generator" script that creates my.cnf. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.