Home >Database >Mysql Tutorial >最常用的MySQL命令语句_MySQL

最常用的MySQL命令语句_MySQL

WBOY
WBOYOriginal
2016-06-01 13:18:18985browse

bitsCN.com

  e良师益友网导读:MySQL数据库是应用最广的数据库之一,在MySQL数据库中有各种各样的命令调用语句,在平常工作中非常实用的命令,对于初学者来说,掌握文中的MySQL命令语句,是非常实用的,下面我们就一起来看看具体内容。
    通过cmd连接mysql:mysql -uroot -p123456 (需要配置path环境变量:C:/Program Files/MySQL/MySQL Server 5.6/bin )
    创建数据库并使用utf8编码: create database utf8_test default character set utf8;
    查看已有的数据库: show databases;
    删除数据库:drop database utf8_set;(慎用)
    查看当前数据的状态:status;(我主要是看当前数据所用的编码)
    

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn