In MySQL command line client after logging in as root, I typed:
connect mydb; grant all privileges on mydb.* to \'admin\'@\'localhost\' identifi
You just forgot the quotation marks.