1.下载PuTTY,解压运行;
2.配置PuTTY:
Session->HostName(输入主机IP,端口22)->SavedSession(随便起个名字,如:abc123)->Save(保存);
Connection -> Data->Auto-login username(输入要登陆的主机用户名,如:ikukun); Connection -> SSH -> Auth->Private key file for authentication(载入对应的主机用户私钥); Connection -> SSH -> Tunnels->Add a forward port(Source port:8888,Distination:localhost:80)->Add;
Session->Save(保存)->Open(载入PuTTY命令窗口);
3.浏览器登录phpmyadmin控制台:http://127.0.0.1:8888/phpmyadmin
4.输入MySQL数据库用户名、密码;
网友评论