[mysql]建立資料庫並制定編碼,mysql編碼

來源:互聯網
上載者:User

[mysql]建立資料庫並制定編碼,mysql編碼

現在用orm比較多,很多mysql表啊都不用自己建立,但是資料庫還是要自己建立,記錄下sql, 備忘。

CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE utf8_general_ci;GRANT ALL ON `mydb`.* TO `username`@localhost IDENTIFIED BY 'password';FLUSH PRIVILEGES;

聲明:
本文出自 “orangleliu筆記本” 部落格,轉載請務必保留此出處http://blog.csdn.net/orangleliu/article/details/44786727
作者orangleliu 採用署名-非商業性使用-相同方式共用協議

相關文章

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.