When creating a user using this command:
create user 'foo'@localhost';
this error is shown:
ERROR 1054 (42S22): Unknown column 'password_last_changed' in 'mysql.user'
Using MySQL server version: 5.7.6
I tried to add it but I don't know its data-type How can I fix this?
CREATE USER
. Maybe try over on the DBA stack. (Could the default database schema itself failed a migration/update?) – Tollgate