Custom post type permalink sends to 404.php

When a new custom post type is created the re-write rules must flushed before the single permalinks will work.

Go to settings -> permalinks. Visiting the settings page will flush your re-write rules and your single post type permalinks will now work.

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