从 Grails 访问 MySQL 服务器 [英] Access MySQL server from Grails

查看:68
本文介绍了从 Grails 访问 MySQL 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢在可从该网络的其他计算机访问的 LAN 中设置专用 MySQL 服务器.如何设置数据库服务器和客户端?Grails 应用程序如何从同一局域网访问 MySQL?

I like to setup a dedicated MySQL server in a LAN accessible from other computers of this network. How can I setup the database server and the clients? How can a Grails application can access the MySQL from the same LAN?

推荐答案

如果您的 MySQL 服务器要在 Windows 上运行,那么您可以使用安装程序对其进行配置.例如,我下载了安装文件 mysql-installer-community-5.6.20.0.msi(版本变化很快),它提供了只安装服务器的选项:

If your MySQL server is going to run on Windows then you can configure it with the installation program. For example, I downloaded the install file mysql-installer-community-5.6.20.0.msi (versions change quickly) and it offers the option of installing just the server:

只需按照屏幕提示操作并采用所有默认值(强烈推荐).要记住的主要值是:

Just follow the screen prompts and take all the default values (strongly recommended). The main values to remember are:

  • 默认网络端口号3306.
  • 服务器的ip 地址.
  • 您创建的可以访问的用户名密码MySQL.
  • The default network port number 3306.
  • The server's ip address.
  • The username(s) and password(s) that you created that have access to MySQL.

那么我建议你下载 HeidiSQL 并配置到你的新 MySQL 服务器的连接,这样你就可以远程管理你的数据库服务器:

Then I suggest you download HeidiSQL and configure a connection to your new MySQL server, that way you can manage your database server remotely:

希望有所帮助.

这篇关于从 Grails 访问 MySQL 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆