Would have to ask why you changed your server IP address from an internal to external address. Is your web server able to be accessed normally? Does it display other html pages ok? You could also try specifying the IP address in your config rather than localhost, that may help. Do you have any errors appearing in any mysql logs, web server logs maybe?