首页 PHP学习

安装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
再执行上述相关代码即可解决。




文章评论

    新闻头条 访客ChromeWindows
    2021-03-19 1:02   回复

    文章不错支持一下吧

      陌岸 站长ChromeAndroid
      2021-03-21 0:07   回复

      感谢来踩