Mysql builds a UTF-8 encoded library

Source: Internet
Author: User

Log in with the root User MySQL development tool (recommended MySQL Workbench), the SQL Execution window executes the following SQL, will create a test_db database:

650) this.width=650; "title=" Operator Interface "alt=" Wkiom1gz3lozqmpdaadvxvpvsiu177.png "src=" Http://s2.51cto.com/wyfs02/M01/8A /8d/wkiom1gz3lozqmpdaadvxvpvsiu177.png "/>

DROP database if EXISTS test_db;--set up db if not EXISTS test_db DEFAULT CHARSET UTF8 COLLATE utf8_general_ci ;--Set full UTF-8 access ALTER DATABASE test_db character set Utf8;set Character_set_client=utf8;set character_set_connection= Utf8;set character_set_database=utf8;set Character_set_results=utf8;set character_set_server=utf8;--set up users, Grant all permissions to Test_user users--set Test_user to access the database via localhost grant all privileges on test_user.* to ' test_db ' @ '% ' identified by ' Test_password ' with grant option;--settings Test_user remote access to database GRANT all privileges on test_user.* to ' test_db ' @ ' localhost ' IDEN Tified by ' Test_password ' with GRANT option;--flush privileges;






This article is from the "12314480" blog, please be sure to keep this source http://12324480.blog.51cto.com/12314480/1875382

Mysql builds a UTF-8 encoded library

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.