(As from the example page, under Step 5, login as the root user)
Code: Select all
$ mysql -u root -p mysqlCode: Select all
$ mysql -u root -p mysqlCode: Select all
mysqladmin -u root password NEWPASSWORDCode: Select all
mysqladmin -u root -p'oldpassword' password newpassCode: Select all
mysql -u USERNAME -p'PASSWORD' -h <YOUR_IP_ADDRES>
mysql -u USERNAME -p'PASSWORD' -h <YOUR_IP_ADDRESS>Code: Select all
/sbin/iptables -I INPUT -i eth0 -s <YOUR_IP_ADDRESS> -p tcp --destination-port 3306 -j ACCEPT
service iptables saveCode: Select all
GRANT all privileges on {database}.* to '{user}'@'{ip}'
identified by '{password}'
with grant option;Code: Select all
grant all privileges on nagiosql.* to 'nagiosql'@'10.0.0.43'
identified by 'asuperstrongpasswordofyourchoicehere'
with grant option;Code: Select all
FLUSH PRIVILEGES;This document helped tremendously. I followed the section required to create a user and open firewall. I can now access MySQL remotely. Thanks.Box293 wrote:This document might have some helpful information as well:
http://exchange.nagios.org/directory/Do ... es/details