Code Monkey home page Code Monkey logo

Comments (4)

GardenHamster avatar GardenHamster commented on May 31, 2024

因为最近我改了下数据表的结构,自动建表的时候可能跟你原来的数据表冲突了吧,第一个commits的表结构已经用不上了。可以先删除原有的表,然后重新运行自动创建新的表,然后再重新导入initData。

另外检查一下appsettings.Production.json里面ConnectionString的值有没有配置好,程序会根据这个值作为目标自动建立数据库和表。

另外initData里面的sql是指定插入到genshinpray这个数据库的,INSERT INTO genshinpray.goods...,稍后我会将genshinpray都去掉

from genshinpray.

GardenHamster avatar GardenHamster commented on May 31, 2024

半夜饿醒了,睡不着然后起来看下github,才发现你的issure....

from genshinpray.

Mateoust avatar Mateoust commented on May 31, 2024

半夜饿醒了,睡不着然后起来看下github,才发现你的issure....

饿醒可还行( ̄▽ ̄) 。

1.之前我有考虑过。所以使用了另外的数据库名。不同的用户名。以及root账户。但是建表并没有发生。期间并没有导入相关数据。因为自动建表没有进行(・ω・)
2. appsettings.Production.json里我修改了ConnectionString以及路径其他的地方无改动。例如:Data Source=42.***.***.***;port=23336;Initial Catalog=luna;uid=lili;pwd=PnS*****************Yx;
3. initData我已经发现了是指定插入到genshinpray这个数据库的,所以我有修改过sql语句。但是插入会因为没有建表导致导入失败。找不到表的报错。我手动建立了表。导入则正常。

数据表结构导致的授权码异常我也感觉很大概率是因为老版本的数据导致的。这个倒是好解决
所以问题就是不了解 建表为什么没有发生。后续我尝试用debug试试看吧。

from genshinpray.

Mateoust avatar Mateoust commented on May 31, 2024

应该是我的问题,多次debug和重试之后。自动建表还是没有发生。断点在相关代码也没什么效果,但是授权逻辑那一块断点正常。于是删除整个项目之后重新git clone最新的main分支后修改配置run之后莫名其妙又正常了(启动后数据库自动建表正常。表出现了)。所以是我的问题。打扰了( ̄ω ̄;)

奇怪的是之前使用的是ffad0d5的版本,这次使用的是540faab版本。问题是啥就不得而知了,稍后close这个is

from genshinpray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.