RemoteAccesstoYourMySqlandPostgreSqlDatabases_MySQL
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了RemoteAccesstoYourMySqlandPostgreSqlDatabases_MySQL,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1648字,纯文字阅读大概需要3分钟。
内容图文
I’m setting up a new Linode Cloud Server and it’s been awesome so far. I installed both MySql and PostgreSql on it, so I’m good to go. I spend a lot of my development time in the database and I want to have my full range of expression with my databases in the cloud. I may be a fan of both the mysql and postgresql command prompts, but I want to work in a nice IDE like Navicat when I can.There, isn’t that sweet? I can work with both my Linode PostgreSql and MySql databases in Navicat as if they were on my hard drive.
We’re going to connect to the Linode PostgreSql and MySql ports through an SSH Tunnel. And it’s all done through a single command.
$ ssh -L 127.0.0.1:3307:127.0.0.1:3306 user@example.com -N
The first port is 3307. That’s what most developers will use because we have MySql running locally. Otherwise if you did not have MySql running locally you would use the default MySql port of 3306. Change “user@example.com” with your SSH username and your server’s hostname or IP address. Don’t make this hard like I did. There’s no need to change your local or remote MySql port settings in /etc/mysql/my.cnf. Once you’ve setup SSH to access your Linode server the above command is all you need.
When you execute the ssh statement above, your prompt will just sit there. That means the connection is open and you’re good to go.
Then in Navicat (or your database IDE of choice) you simply connect to port 3307 for the Linode MySql database. You can ignore the SSH tab. Completing the General tab form is all you need.
Hopefully this will help you enjoy working in your Linode databases more than with a command line alone.
内容总结
以上是互联网集市为您收集整理的RemoteAccesstoYourMySqlandPostgreSqlDatabases_MySQL全部内容,希望文章能够帮你解决RemoteAccesstoYourMySqlandPostgreSqlDatabases_MySQL所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。