How can I use a separate domain for URL shortening?

Try Yourls. I hadn’t used it myself but feedback I seen is very positive and it is project by very known developers (Lester Chan and Ozh).

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