Errno::EACCES: Permission denied on new Ubuntu development setup

Which development guide are you following?

I think the problem is that your user doesn’t have rights to create a database.