I am trying to install a craft playground using vagrant and puppet. After firing the default installation for a LAMP stack and creating related DB and User, granting privileges, ... I want to start the craft installation, all I get is:
Craft can’t connect to the database with the credentials in craft/config/db.php.
The commands I am using to create the DB:
CREATE DATABASE craftdb CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE USER craftadmin@localhost IDENTIFIED BY 'ThisPassword'; GRANT ALL PRIVILEGES ON craftdb.* TO craftadmin@localhost; FLUSH PRIVILEGES; EXIT
The dp.php looks like this:
// The database server name or IP address. Usually this is 'localhost' or '127.0.0.1'. 'server' => 'localhost', // The database username to connect with. 'user' => 'craftadmin', // The database password to connect with. 'password' => 'ThisPassword', // The name of the database to select. 'database' => 'craftdb', // The prefix to use when naming tables. This can be no more than 5 characters. 'tablePrefix' => '',
PHP Packages installed:
"php5", "php5-common", "php5-cli", "php5-mysql", "php5-sqlite", "php-pear", "php5-dev", "php5-gd", "php5-curl", "php5-mcrypt", "libapache2-mod-php5"
Any suggestions are much appreciated