免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1132 | 回复: 0
打印 上一主题 下一主题

How to connect SugarCRM to a remote database? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-28 11:17 |只看该作者 |倒序浏览

To connect SugarCRM with some remote database server, you may need
to make some changes in the database to which you have the data and
then to the config.php file which is in the root SugarCRM directory.
Database Server Settings: First of all we have to create a database, suppose I create a database with the name sugar. Now we give the privilege to the user at that database.
grant all on sugar user@hostname identified by ‘password’

Now here we have to give the IP address or the hostname e.g. hostname.com, of the database where it is installed. So, now the command will read like this:
grant all on sugar user@ipaddress/hostname.com identified by ‘password’

SugarCRM cofig.php Settings: Change the database information in the config.php file which is located at /Sugar/config.php
  •     ‘db_host_name’ => ‘IP address/hostname.com‘,
  •     ‘db_host_instance’ => ‘’,
  •     ‘db_user_name’ => ‘user‘,
  •     ‘db_password’ => ‘password‘,
  •     ‘db_name’ => ‘sugar‘,
  •     ‘db_type’ => ‘mysql’,

This will allow you to connect your SugarCRM to the remote database.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32407/showart_251085.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP