从 Grails 访问 MySQL 服务器 [英] Access MySQL server from Grails
问题描述
我喜欢在可从该网络的其他计算机访问的 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) andpassword
(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屋!