We could do with a mechanism that would allow a restored copy of grafana.db to successfully run on a new/different server.
This would also be useful for running a mirror without the need to manually import dashboards between servers.
I trried copying /etc/grafana with file grafana.ini and /var/lib/grafana folder with grafana.db and provided 777 permission , I am able to login to grafana but not able to find any of my dashboards or DB config
Sounds like Grafana created a new database somewhere. Which OS are you on and how did you install Grafana?
Package details for the Ubuntu/Debian package - Install Grafana on Debian or Ubuntu | Grafana documentation
which says the grafana.db should be located at /var/lib/grafana/grafana.db so not sure why it is not working for you if you are on Ubuntu/Debian.
Can you check the database name and the paths section in your server settings: