I use this method to add users
INSERT INTO the User
( Host , the User , password , Select_priv , insert_priv , update_priv ) VALUES ( 'localhost' , 'DCW' , PASSWORD ( 'dcw123' ), 'the Y-' , 'the Y-' , 'the Y- ' ); will report the following error: field,' ssl_cipher 'does not have have a default value I checked, error reason: in some fields mysql user table can not be empty, with no default, in fact, is a mistake, add user mysql is not so directly insert user table, but earlier versions of mYSQL I mistake not much appear because Tianyuan has been directly modify the user table directly or using the INSERT statement is completed, mYSQL and later upgrade to 5.1, I found this error may occur.
Add the correct user methods: (dcw is the account, dcw123 is the password)
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
-> ON TUTORIALS.*
-> TO 'dcw'@'localhost'
-> IDENTIFIED BY 'dcw123';