1.可以不需要安装
2. C:\mysql\bin>mysqld-max-nt –install 每次计算机启动都运行mysql服务
3.winmysqladmin 起动图形化管理工具
4.登录
mysql -h localhost -u root –p( h :host; u:user p:password)
5.MySql 基本安全设定(必须先用root 登录,然后 use mysql)
Mysql 数据库中user表为权限表(为了记麻烦,以后再研究)
6. mysql> show databases
-> ;
+----------+
| Database |
| mysql |
| test |
显示数据库,这里默认显示带了两个数据库
7.显示mysql数据库里的表
mysql> show tables
+---------------------------+
| Tables_in_mysql |
| columns_priv |
| db |
| func |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
15 rows in set (0.02 sec)
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18