How does WordPress access theme and plugin files through its editor?

How does WordPress access theme and plugin files through its editor?

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