I tried with root user, which has all grants to create databases and all. In addition I created a new user, with all privileges like this:
CREATE USER 'energy'@'localhost' IDENTIFIED BY 'energy123@';
GRANT ALL PRIVILEGES ON * . * TO 'energy'@'localhost';
and it also doesn't work.
What else could be going on?