In my company we have a small tool to manage the accounts of our users in different applications using SQL-statements.
Now my boss wants me to integrate piwik’s user table into this tool.
I tried it using the following mysql statement. Insert into user’s table works, but the created user cannot login (‘Wrong username or password’)
Did you get an installation warning about mismatched charsets? If so, and you didn’t resolve it, then you should use the API instead of modifying the database directly.
@Christian: Thanks for the tipp, mysql has a problam with ‘+’. Using CONCAT instead solves the problem:
INSERT INTO piwik_user( login, password, alias, email, token_auth, date_registered )
VALUES (
‘user_test’, MD5( ‘lipiby01’ ) , ‘A Testuser’, ‘a.testuser@cadenas.de’, MD5( CONCAT( ‘user_test’, MD5( ‘lipiby01’ ) ) ) , NOW( )
)