执行 php artisan migrate:install报错

执行 php artisan migrate:install

报错:
 SQLSTATE[42000]: Syntax error or access violation: 1231 Variable ‘sql_mode‘ can‘t be set to the value of ‘NO_AUTO_CRE****ATE_USER‘ (S
  QL: create table `migrations` (`id` int unsigned not null auto_increment primary key, `migration` varchar(255) not null, `batch`
  int not null) default character set utf8mb4 collate utf8mb4_unicode_ci) 

解决方法是:
laravel54\config\database.php
修改代码中的 strict 值修改成 false.

再次执行结果:
[[email protected] laravel54]# php artisan migrate:install
Migration table created successfully.
[[email protected] laravel54]#

原文地址:https://blog.51cto.com/zhongliang/2450874

时间: 2024-08-29 21:08:18

执行 php artisan migrate:install报错的相关文章

shell 脚本执行mvn clean install 报错 --MissingProjectException

ll 脚本执行mvn clean install 报错 12月12日北京OSC源创会 —— 开源技术的年终盛典 »   [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] --------------------------------------------------

Xcode8 pod install 报错 “Generating Pods project Abort trap

Xcode8 pod install 报错 "Generating Pods project Abort trap 今天在写一个新项目的时候,使用cocoapods在执行 $ pod install 的时候,终端提示 Generating Pods project Abort trap: 6 解决办法: 删除所有cocoapods gems, 依次执行以下命令: sudo gem uninstall cocoapods sudo gem uninstall cocoapods-core sudo

mvn install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2 错误: 找不到符号

报错信息 在Eclipse中执行mvn install时,console端显示如下报错信息: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ERP: Compilation failure: Compilation failure: [ERROR] \test01\src\main\java\HStyl

pod install 报错: Unable to satisfy the following requirements

有时候从github上下载的项目,pod install 报错.原因是项目里的用到的库有最新版本了,Podfile需要更新! 解决办法:执行pod update --verbose(这个命令时间可能会长一些) 更新下,然后在pod install就成功了. pod update --verbose成功界面  ->接着执行pod install就可以了

yum install 报错[Errno 14] curl#37 - Couldn't open file /mnt/repodata/repomd.xml

1.然后按照网上的一些修改,先是执行: yum cleam all 然后 yum makecache,问题还是没解决,继续报错. 其实这两条命令就是清空缓存,然后再重新缓存的意思,有时候可能有效. 2.然后又尝试了方法,说是DNS的问题,上不了网.又去改了DNS(可以去尝试尝试,因为不同人遇到问题不一样). 如果是绑定了静态地址,直接修改/etc/resolv.conf   这个文件下的DNS是没有用的,因为你执行命令service network restart 会恢复.所以要修改网卡的配置文

【maven】Maven插件篇 --- maven项目 mvn install 报错: Failed to execute goal on project 项目名: Could not resolve dependencies for project

参考:Maven实用技巧 https://msd.misuland.com/pd/3255817963235707346 报错: maven项目 mvn install 报错: [ERROR] Failed to execute goal on project 项目名XXX: Could not resolve dependencies for project com.项目名XXX:war:1.0.0-SNAPSHOT: Failure to find 项目名1XXX:jar:0.1.0-SNA

pip install报错Can't roll back cryptography; was not uninstalled

当使用pip install或者pip install --upgrade报错 Can't roll back cryptography; was not uninstalled 可以进行以下的尝试: sudo apt-get install libssl-dev libffi-dev 之后再继续php install pip install报错Can't roll back cryptography; was not uninstalled

python2.7.6 , setuptools pip install, 报错:UnicodeDecodeError:'ascii' codec can't decode byte

今天折腾了一天,安装pyspider,由于依赖包众多,而且搜索到所有信息多是在linux平台和mac平台下的安装教程.可怜我试了n多版本,一直不成功. 最后发现有人说python的版本,不能低于2.7.6,否则pycurl无法安装成功,一查我的是2.7.2. 好吧,卸载,重新安装python2.7.6. 似乎安装后,能够顺利安装pycurl了,但是easy_install 报错信息与编码相关: 在网上搜索找到解决方案:http://www.360doc.com/content/14/0508/0

Eclipse中mvn install 报错error in opening zip file

报错信息 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project wms: Compilation failure [ERROR] Failure executing javac, but could not parse the error: [ERROR] 错误: 读取C:\Users\Administrato