logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Laravel 7 SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; 错误

larave 使用migrate的时候报了一个错误SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key原因:在创建表的时候,其中一个字段写成...

#php#mysql#laravel
laravel 7 报错 The stream or file “/var/www/storage/logs/laravel.log“ could not be opened in append

laravel项目部署到linux的时候出现The stream or file "/home/www/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied网上的各种教程都是要修改文件夹权限,实际上文件夹权限早就是777了,这时候还有一些cento

#linux#centos#laravel +1
git 使用代理访问github与删除代理

查看本地的代理端口设置代理,注意,https的端口,前面加上httpsgit config --global http.proxy http://127.0.0.1:10809git config --global https.proxy https://127.0.0.1:10809mypc@DESKTOP-51C5OC3 MINGW64 /c/work/mooc (master)$ git c

#git
python peewee 通过已有的数据库的表生成model

比如我现在有一张已经创建好的表 caiji表执行python -m pwiz -e mysql -H localhost -p 3306 -u 数据库用户名 -P 数据库密码 -t 表名(table name) 库名(database name) > 要生成的python文件名称.py-u 后面是你的数据库的登陆用的用户名,通常为root-P 是你的数据库登陆的时候使用的密码,我本地数据库密

#python
到底了