MySQL Operation record

Source: Internet
Author: User

/** Create a new user * * Log in to the root user using the command line tool or IDE. (Command: Mysql-u root-p)*/--Execute SQL statement insert user, want to use password method unified encryption, otherwise can't use. INSERT  intoMysql.User(HOST,USER, Password,ssl_cipher,x509_issuer,x509_subject)VALUES('localhost','Harlan', PASSWORD'123456')/** If you encounter a field ' ssl_cipher ' doesn ' t with a default value error in execution, it is because the Ssl_cipher and other fields do not have defaults, which can be resolved by modifying the MySQL my.ini configuration file. * Change sql-mode= "strict_trans_tables,no_auto_create_user,no_engine_substitution" to Sql-mode= "NO_AUTO_CREATE_USER,NO_ Engine_substitution "Restart MySQL after*/  --refresh MySQL permissions related tableFLUSHPrivileges; --authorization database, the default user does not have the task database operation permission, then needs authorization.   GRANT  All Privileges  onTest.*  toHarlan@localhostIdentified by '456789';

  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.