码迷,mamicode.com
首页 > 数据库 > 详细

MySQL笔记

时间:2014-07-10 18:07:42      阅读:296      评论:0      收藏:0      [点我收藏+]

标签:mysql笔记

mysqlDOS环境下,完成如下操作。

   输入密码登陆数据库,打开mysql5.5的命令行客户端,在Enter password后面输入密码,确认无误后打开数据库界面,如果密码有误,则关闭。

Enter password

Welcome to Mysql monitor.  Commands end with ; or  \g.

Your Mysql connection id is 12

Sever version: 5.5.17  Mysql Community Server <GPL>

 

Copyright  <c> 2000,2001,oracle and/or itsaffiliates.All right reserved.

 

Oracle is a registererd trademarkof Oracle Corporation and/or its

Affiliates. Other names may betrademarks of their respective

Owners

 

Type ‘help’; or’\h’ for help. Type ‘\c’to clear the current input statement.

Mysql>

 

查看目前已经存在的数据库,使用的语句如下:

 SHOW DATABASE;”

创建一个名为example的数据库,语句为“CREATE DATABASE example;”

查看数据库中存在的字符集语句:“mysql>CHARACTER SET;”

将创建的example数据库的字符集修改成uft8,使用语句为“ALTER DATABASE example CHARACTER SET uft8;”

删除example数据库,使用语句为“DROP DATABASE example;”


本文出自 “guyang_86” 博客,请务必保留此出处http://guyang.blog.51cto.com/9122948/1436674

MySQL笔记,布布扣,bubuko.com

MySQL笔记

标签:mysql笔记

原文地址:http://guyang.blog.51cto.com/9122948/1436674

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!