WordPress with Lan and Wan Access?

For LAN access add the following to the /etc/hosts file:

192.168.0.10 (ip of WordPress server) domain.com

or

localhost domain.com

if the server is on the same machine

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)