报错Column not found: 1054 Unknown column 't0.changed_nickname_at' in 'field list'的解决办法

December 11, 2020 · PHP学习 · 741次阅读

安装vmoex的时候到修改管理密码php bin/console change-password -u admin -p 123456这一步报错了
An exception occurred while executing 'SELECT t0.id AS id_1, t0.username AS username_2, t0.nickna
me AS nickname_3, t0.password AS password_4, t0.email AS email_5, t0.is_email_verified AS is_emai
l_verified_6, t0.avatar AS avatar_7, t0.remark AS remark_8, t0.gold AS gold_9, t0.sign_day AS sig
n_day_10, t0.active_val AS active_val_11, t0.role AS role_12, t0.salt AS salt_13, t0.changed_nick
name_at AS changed_nickname_at_14, t0.register_at AS register_at_15, t0.login_at AS login_at_16 F
ROM user t0 WHERE t0.username = ? LIMIT 1' with params ["admin"]:
Column not found: 1054 Unknown column 't0.changed_nickname_at' in 'field list'
解决办法:
先执行一段代码php bin/console doctrine:schema:update --force
再执行上述相关代码即可解决。

ENJOY 0

php报错php教程

最后编辑于8个月前

添加新评论

  1. 新闻头条
    2021-03-19 01:02

    文章不错支持一下吧

    回复
    1. 陌岸
      2021-03-21 00:07

      感谢来踩 ::(吐舌)

      回复
avatar

陌岸

62

文章数

12

评论数

5

分类

新鲜出炉の评论

学习《社会保障基金营运管理》的收获
菊部制造
菊部制造2021-04-14

感谢郭嘉

学习《社会保障基金营运管理》的收获
今日新闻头条
今日新闻头条2021-03-25

文章不错支持一下

报错Column not found: 1054 Unknown column 't0.changed_nickname_at' in 'field list'的解决办法
陌岸
陌岸2021-03-21

感谢来踩 ::(吐舌)

报错Column not found: 1054 Unknown column 't0.changed_nickname_at' in 'field list'的解决办法
新闻头条
新闻头条2021-03-19

文章不错支持一下吧

学习《社会保障基金营运管理》的收获
今日头条新闻
今日头条新闻2021-03-19

文章不错非常喜欢