How to add custom text field inputs for attributes in backend?

I managed to achieve this using ACF and editing the “product-attributes.php” file in the woocommerce plugin.

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