Replace core wordpress file with my own

Yes, it is possible. You can modify that file and use it.

But… It will be a lot of work to maintain those changes. You’ll have to merge them after every WordPress update and check if these changes don’t break anything in WP. That’s why such modifications aren’t very common practice and they’re not recommended.

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