How to install g++ in Cygwin?

Finally I could find the answer in this link. If one uses the MinGW installation file again, one can add some other packages. I installed all Devel packages for MinGW and followed this tutorial which helped me to solve the problem.

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