Quantcast
Channel: Changing the mysql bind-address within a script - Server Fault
Browsing latest articles
Browse All 5 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Changing 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

Browsing latest articles
Browse All 5 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>