本文介绍了Laravel&工匠给法国错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,在运行此代码时:

For some reason, while running this code:

php artisan db:seed --class=CitiesTableSeeder

请给我这段代码,其中一半是法语:

Give me this code, half of it in French:

[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 La table 'ersh.cities'
n'existe pas

我不确定该如何解决.我知道这里还有另一个问题,但是我不想混淆任何问题.非常感激任何的帮助.谢谢!

I am not sure how to correct this. I know there is another problem here, but I don't want to mix questions. Any help would be most appreciated. Thank you!

推荐答案

我假设它是MySQL.如果没有,请说明使用哪种语言,我将尝试找到正确的命令.

I'm assuming it's MySQL. If not, please state which language and I'll try to find the correct command.

对于DBMS,lc_message的语言设置为法语.

The language for lc_message is set to French for the DBMS.

要更改为美国英语,请运行:

To change to US English run:

mysqld --lc_messages_dir=/usr/share/mysql --lc_messages=en_US

编辑

WAMP由法国开发商开发,因此请在my.ini文件中查找

lc-messages=fr_FR

并将其更改为

lc-messages=en_US

这篇关于Laravel&工匠给法国错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 16:01