dustin2016
V2EX  ›  问与答

Node+mysql 本地数据库操作正常,服务器操作一次就失效了,求解答

  •  
  •   dustin2016 · Jun 6, 2017 · 1805 views
    This topic created in 3291 days ago, the information mentioned may be changed or developed.

    1.本地使用外网连接数据库,服务器使用内网,都能正常运行和操作

    2.本地新增数据库表和增加一条数据没问题,但是同样的代码服务器上执行一次后就不生效了

    数据库创建表

    环境为 Node+express+mysql

    数据库

    不明白问题出在哪,服务器的代码每改动一次就可以生效一次,但下次再访问,数据库的操作就无效了

    请帮忙分析下原因以及建议下解决方案 谢谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1062 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:27 · PVG 02:27 · LAX 11:27 · JFK 14:27
    ♥ Do have faith in what you're doing.