mysql增加远程连接用户及查看数据库表结构

一、增加远程连接用户

    1.用root权限登录数据库

    2.加用户:grant all privileges on *.* to '111'@'192.168.1.%' identified by '222' with grant option;

    其中111为账户,222为:密码    允许的远程IP段位:192.168.1.*

 

    3.删除远程连接用户:drop user '111'@192.168.1.%';   或  drop  user 111@192.168.1.1;

 

二、查看数据表结构

  1.在windows上安装软件:“navicat for mysql”       下载地址:http://www.navicat.com.cn/download

  2.连接数据库

  3.查看数据表结构:找到要查看的数据库-->右键--> 逆向到数据库模型……

  如图:

   

posted @ 2014-11-12 16:04  语~默  阅读(489)  评论(0编辑  收藏  举报