Tryton ERP MySQL安装 [英] Tryton ERP MySQL installation

查看:107
本文介绍了Tryton ERP MySQL安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 MySQL 作为数据库安装 Tryton ERP.不太清楚你打算做什么.

I'm trying to install Tryton ERP with MySQL as the database. It's not quite clear what you are meant to do.

配置文档,您只需提供uri 到 [database] 部分下的数据库:

From the config documentation you simply supply the uri to the database under the [database] section:

[数据库]uri = mysql://user:pass@localhost:3306

然而,运行 trytond -v -c/home/user/.config/tryton/3.8/tryton.conf 似乎并没有让它工作.当尝试访问运行 Tryton 的 127.0.0.1:8050 时,我只是收到 127.0.0.1 - - [23/Nov/2015 16:55:10] 代码 404,消息文件未找到

However running trytond -v -c /home/user/.config/tryton/3.8/tryton.conf does not seem to get it working. When trying to access the 127.0.0.1:8050 where I've got Tryton running, I simply get 127.0.0.1 - - [23/Nov/2015 16:55:10] code 404, message File not found

有人会假设,Tryton 要么自行安装数据库,要么您需要以某种方式创建自己,但我没有看到任何相关文档.

One would assume, Tryton either installs the database on its own or you need to create yourself somehow but I didn't see any documentation surrounding that.

我也尝试通过 Tryton GUI 添加数据库,但遇到以下错误:

I've also trying adding a database through the Tryton GUI, it encounters the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tryton/gui/window/dbcreate.py", line 65, in server_change
    common.refresh_langlist(self.combo_language, host, port)
  File "/usr/local/lib/python2.7/dist-packages/tryton/common/common.py", line 253, in refresh_langlist
    lang_list = rpc.db_exec(host, port, 'list_lang')
  File "/usr/local/lib/python2.7/dist-packages/tryton/rpc.py", line 57, in db_exec
    result = getattr(connection.common.db, method)(None, None, *args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python2.7/dist-packages/tryton/jsonrpc.py", line 271, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1306, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in parse_response
    return u.close()
  File "/usr/local/lib/python2.7/dist-packages/tryton/jsonrpc.py", line 134, in close
    return json.loads(self.data, object_hook=object_hook)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 505, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 389, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 2 (char 1)

我已经安装了此处 和 MySQL-python 包安装了,应该还有什么吗?

I've got the prerequisites installed that were listed here and MySQL-python package installed, should there be anything else?

推荐答案

您应该使用 MySQL 自己的工具在 MySQL 上创建一个数据库.创建数据库后,您必须使用以下命令对其进行初始化:

You should create a database on MySQL with it's own tools. Once the database is created you must initialize it using the following command:

trytond -c <config_file> -d <database name> --all

查看完整参考:

http://doc.tryton.org/3.8/trytond/doc/topics/setup_database.html#topics-setup-database.

完成后,服务器将要求输入管理员密码.输入后,您可以使用 tryton 客户端与 admin 用户和输入的密码进行连接.

Once finished, the server will ask for an admin password. Once entered you can conect using the tryton client with the admin user and the entered password.

为了从 Web 客户端访问 tryton,您必须安装和配置 sao Web 界面,可以在以下位置找到:

In order to access tryton from web client you must install and configure the sao web interface, that can be found on:

https://www.npmjs.com/package/tryton-sao

这篇关于Tryton ERP MySQL安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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