咨询热线:18076568990、0755-25823180

[已回应] 安装linux64位 IM 报错

1629 3 ming2 发表于 2017-6-13 16:33:43
5金钱
本帖最后由 ming2 于 2017-6-13 17:14 编辑

# /usr/local/node/bin/node /usr/local/node/chat.js
   info  - socket.io started
mysql err: ER_ACCESS_DENIED_ERROR

/usr/local/node/node_modules/mysql/lib/protocol/Parser.js:80
      if (typeof err.code !== 'string' || err.code.substr(0, 7) !== 'PARSER_')
                    ^
TypeError: Cannot read property 'code' of undefined
    at Parser.write (/usr/local/node/node_modules/mysql/lib/protocol/Parser.js:80:21)
    at Protocol.write (/usr/local/node/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/usr/local/node/node_modules/mysql/lib/Connection.js:82:28)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:745:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:407:10)
    at emitReadable (_stream_readable.js:403:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)


 楼主| ming2 发表于 2017-6-14 17:57:22
雪之缘 发表于 2017-6-13 18:47
看下你的数据库用户名和密码是否正确

还真是密码错了
回复

使用道具 举报

 楼主| ming2 发表于 2017-6-14 11:23:43
siruiweb 发表于 2017-6-14 00:23
node-mysql 版本问题,把对应版本降级,如需帮助请加QQ:3318896071

node-mysql 是我congfig 配置的么 这个congfig 配置的数据库 是我商城的数据库么
回复

使用道具 举报

雪之缘 发表于 2017-6-13 18:47:14
看下你的数据库用户名和密码是否正确
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 今日
    0
  • 主题
    1507

推荐贴子

联系我们

产品及方案咨询:18076568990、0755-25823180

电子邮箱:web@shopwt.com、客服微信:shopwtcom

公司地址:深圳市罗湖区人民南路3002号国贸大厦B座1608楼

  • 官方公众号

  • 微信客服