Set user role on registration so can upload file to own media library area

You might simply want to go to Settings > General. Here you can select the standard role a user gets, once he registers.

Select standard user role in WordPress

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