热门关键字:  ubuntu  分区  Fedora  linux系统进程  函数

当前位置 :| 主页>Linux教程>软件应用>

通过Putty远程安全管理MySQL

来源: 作者: 时间:2007-02-27 Tag: 点击:

本文档介绍的是如何通过使用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!




相关文章:
QT之1(PC机上搭建环境及应用)
安装wine
解决安装CentOS5之后,vi不显示颜色的问题
linux控制台下的一个好东西-splitvt
Vmware-server目标主机积极拒绝,无法连接
vmware server 1.0.6 for linux相关命令
逐步设置vim C/C++语法高亮显示和自动缩进
在VM虚拟机器Linux下安裝VMware Tool的方法
玩了一下compiz-fusion
BMP-Beep Media Player
VIM 文件编码识别与乱码处理(一)
VIM 文件编码识别与乱码处理(二
VI技巧
让firefox 支持 amule (ed2k 协议)
为CentOS 5.1中的Firefox 1.5安装Flash插件……
vi 在编辑某文件时,在该文件内查找东西用何命令?
Freebsd + wine1.1.9 + 国元网上证券交易(通达信
emacs 代码补全功能
安装drupal-6.2和简体中文语言包
谈 Linux GNU 实用工具兼容性
Linux 文件压缩工具指南 一些免费和实用工具的评
Emacs 基础知识
介绍 Emacs 的编辑环境
在 Emacs 中编辑文本
生活在Emacs中
生活在emacs中2
生活在Emacs中3
Linux命令行性能检测工具
Linux下Expect配置
生活在Emacs中4