zendframework/zf2-tutorial — pull request #2 by JonathanWheeler (2012-09-27 00:16:44+00:00)
Title: Update config/autoload/global.php

Fixed

'dsn' => 'mysql:dbname=zf2tutorial;hostname=localhost',
to
'dsn' => 'mysql:dbname=zf2tutorial;host=localhost',

per post on
http://zend-framework-community.634137.n4.nabble.com/ZF2-Create-database-connection-to-php-cloud-db-server-td4656798.html

... I ran into the same issue.