Answer by Peter Childs for Changing the mysql bind-address within a script
augtool -s set '/files/etc/mysql/my.cnf/target[ . = "mysqld"]/bind-address 0.0.0.0'The Ubuntu package is called 'augeas-tools'
View ArticleAnswer by Chukky Nze for Changing the mysql bind-address within a script
Adding to what's been said by @nonsenz, If you use puphpet.com's provisioning scripts then you can add a bash file to the /puphpet/files/startup-always folder and place all your commands in there....
View ArticleAnswer by nonsenz for Changing the mysql bind-address within a script
It looks like sed is the easiest way in this context (after a clean install):sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
View ArticleAnswer by Ladadadada for Changing the mysql bind-address within a script
Sounds like you're looking for Augeas.The project page is here and some documentation and examples are here. MySQL is included on the stock lenses page but unfortunately the documentation links to a...
View ArticleChanging the mysql bind-address within a script
What would be the best way to change the mysql bind-address in the my.cnf from a shell script? Is there a way using a tool like mysqladmin or should I use sed or should I simply append it to the my.cnf...
View Article
More Pages to Explore .....