I wanted to setup my owncloud installation on my raspberry pi 2. So, I created an mysql database and user.
CREATE DATABASE owncloud;
CREATE USER 'owncloud'@'localhost' IDENTIFIED BY 'Password';
GRANT ALL PRIVILEGES ON owncloud. * TO 'owncloud'@'localhost';
Error while trying to create admin user: Failed to connect the database: An exeption occured in driver: SQLSTATE[HY000] Access denied for user 'owncloud'@'localhost' (using password:YES)