Add Z MySQL Database Connection problem

1 view
Skip to first unread message

littlegirl

unread,
Oct 2, 2008, 7:04:36 PM10/2/08
to CZUG-Plone技术讨论
我这几天又遇到了问题,我现在要添加一个Z MySQL 数据库的连接, 在Zope界面出现add Z MySQL Database
Connection的表格, 它要求填写id, title, 还有Database Connection String, 它给出了一个Z
MySQL Database Connection的一个填写格式,是这样的

Connection Strings
The connection string used for Z MySQL Database Connection is of the
form:

[*lock] [+/-][database][@host[:port]] [user [password
[unix_socket]]]

or typically:
database user password

我现在就是这个connection string 填写的不正确,总是出现这个错误信息
User Name (User Id) officer (admin)
Request URL http://localhost:8080/Plone/manage_addProduct/ZMySQLDA/manage_addZMySQLConnection
Exception Type OperationalError
Exception Value (1045, "Access denied for user
'admin'@'localhost' (using password: YES)")

我不知道是不是用户名还是密码填写错误?我目前用的是zope admin 的用户名和密码,大家如果知道问题在哪里,请给我指教,谢谢。

柯铁军

unread,
Oct 3, 2008, 7:24:33 AM10/3/08
to czug-...@googlegroups.com
mysql的用户名和密码跟zope的用户名和密码没关系,得在mysql里设置,然后填写mysql中设置的用户名和密码。

2008/10/3 littlegirl <lang...@hotmail.com>:

--
柯铁军

Reply all
Reply to author
Forward
0 new messages