CREATE USER ‘openhab’@‘localhost’ IDENTIFIED BY ‘openhab’;
GRANT ALL PRIVILEGES ON openhab.* TO ‘openhab’@‘localhost’;
EDIT
Wow … I try with root user …
> database using: driverClass=com.mysql.jdbc.Driver, url=jdbc:mysql://localhost:3306/openhab, user=root, password=root > java.sql.SQLException: Access denied for user ‘root’@‘localhost’ (using password: YES) > at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1078) ~[mysql-connector-java-5.1.26-bin.jar:na] > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190) ~[mysql-connector-java-5.1.26-bin.jar:na] I know it’s the good password ( i change it for something simple to make a test… )
EDIT
Ok i resolve it ! i had another mysql server on my computer and the good one was not allowed on the network so openhab try to connect to the other…
God damn mac who have to many build-in server ! i had similar issue with openhab
EDIT
One last thing … well i hope ! Ehhh … in my log everything seems working great but no trace of something is save in the db … why ? Does-it need another config to tell what to put in a db ? i taught it was the job of the .persistent file