首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | 镜像站
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
Linux资讯 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>linux数据库>mysql>正文

通过Putty远程安全管理MySQL

http://www.oklinux.cn  2007-01-03  来源: linux.chinaunix.net howtoforge  会员收藏  游客收藏  【 】 

本文档介绍的是如何通过使用Putty的SSH2安全连接功能,在本地机器上远程管理你的MySQL服务器。

This is a description of how to set up a secure tunnel between your MySQL Server and a locally running MySQL Administrator using Putty. By creating a secure tunnel to your MySQL server using Putty, you can grant localhost access to powerful applications like MySQL Administrator while at the same time, make your server appear as if it isn't even there. In effect, make your MySQL server disappear from the outside world.

You will need the following software:

When completed, you will not only have a secure connection between your remote MySQL Server and a local instance of MySQL Administrator but more so, you will open up all the functions and features of MySQL Administrator that are only available to instances running locally on the server itself.

Step 1, Selecting a server connection profile in Putty

Click on whichever connection name you wish to use for the secure tunnel.

Step 1 - Select the desired connection profile.

Step 2, Click "Load"

Step 2 -  Load the connection profile

Step 3, Go to Connection > SSH > Tunnels

Step 3 - Go to Connection > SSH > Tunnels

Step 4, Enter MySQL connection information

Step 4 - Enter MySQL connection information

The "Source port" is the local port your MySQL Administrator will connect to instead of the remote (server) port it normally would. This can be any port currently unused on your system and should be different for every tunnel you wish to create.

The "Desitination" is the address and port of your actual MySQL Server. But since your SSH connection will be considered "local" to your MySQL Server, you should use either "127.0.0.1" or "localhost" depending on what works best.

Step 5, Adding the new tunnel information

Step 5 - Adding the new tunnel information

Make sure the information in "Source port" and "Destination" are correct, that the "Local" radio button is selected and click "Add".

You should now see the new tunnel information displayed as shown.

Step 6 - SAVE YOUR SETTINGS!!!

Step 6 - SAVE THE NEW CONNECTION SETTINGS!!!!

BEFORE YOU DO ANYTHING ELSE go back to the main Putty screen and save the connection profile updates.

This can not be stressed strongly enough! If you do not save your new tunnel information, not only will you lose it on closing putty but you'll also lose it if you simply make a connection and you may even lose it while trying to make the connection in the first place!

Step 7 - Connect to the server

Connect to the server from Putty as you normally would.

Step 8 - Configure MySQL Administrator's connection settings.

Step 8 - Configure MySQL Administrator connection settings.

Since your connection will now be through the secure tunnel created by Putty, your "Server Host" will now be local so use "127.0.0.1".

The "Port" should be set to the same port you set in Step 4.

Once the connection settings are correct, click "OK" and you should then be able to succesfully connect to your MySQL server except now, through a secure tunnel!


上一篇:Sqlite中文排序研究   下一篇:让MYSQL彻底支持中文


收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·让MYSQL彻底支持中文
·每天备份 mysql 数据库的脚本
·Linux 安装 Mysql
·MySQL的一些安全注意点
·如何在Linux系统中安装MySQL
·MySQL运算符获得更多数据比较功能
·在MySQL 数据库中使用C 执行SQL语句
·你应该知道的10个MySQL客户启动选项
·如影随形的数据库 嵌入式数据库简介
·将数据库访问集成到 Linux 应用中
·在Linux高负载下mysql数据库彻底优化
·如何保护MySQL重要数据
·Mysql 5.0.22 Cluster for RedHat AS4-U2
·加速动态网站之MySQL 索引分析和优化
·怎样在UNIX系统下安装MySQL
·配置最新的PHP加MYSQL服务器完全版
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·无需编程直接利用图形界面导入导出的方
·教你快速掌握 MySQL数据库中触发器的应
·解析:怎样在MySQL中获得更好的搜索结果
·将数据从MySQL迁移到 Oracle的注意事项
·细化解析:怎样修改 MySQL数据库中的密
·解析:优化MySQL数据库性能的几个好方法
·教你轻松掌握如何保护MySQL中的重要数
·细化解析:怎样把你的 MySQL 完全中文化
·带你轻松接触 MySQL中损坏的MyISAM表
·解析:教你轻松的掌握 ENUM和SET约束
·细化解析:与浮点比较有关的几个问题
·解析:以mysql_开始的未定义引用错误
  阅读排行
·Linux 安装 Mysql
·如何在Linux系统中安装MySQL
·在Linux 环境下安装 Mysql
·在Linux上安装MySQL Server 5.0
·图形化管理MySQL更轻松
·[Mysql]IIS+mysql+php相关知识介绍
·MySQL创始人David Axmark 访谈实录
·你应该知道的10个MySQL客户启动选项
·Heartbeat_2.0.3配置MySQL5.0.8集群
·Linux系统上安装MYSQL数据库的方法
·[MySQL]入门学习从安装入门到学习操作
·MySQL中文参考手册-创造并使用数据库
·MySQL5.0新特性教程 存储过程:第三讲
·MySQL 5.0新特性教程 存储过程:第一讲
·[Mysql]Mysql数据库管理系统优化方案
网摘收藏: