我正在运行homestead的exiting项目。当运行php artisan migrate时,会出现错误。 这是完整的错误。 在Connection.php第664行中: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'forum.chanel' doesn't exist (SQL: select * from `chanel`)
In Connection.php line 326:
SQLSTATE[42S02]: Base table or view not found
当我想要迁移时,CLI上会显示以下消息。
In Connection.php line 664:
SQLSTATE[42S02]: Base table or view not found: 1932 Table 'kshitiz.migrations' doesn't exist in engine (SQL: select `migration` from `migrations` order by `batch` asc, `migration
` asc)
In Connection.php line 326:
SQLSTATE[42S02]: B
我只是作为一个在线课程开始学习laravel,并在讲师的指导下一步一步地执行所有的指令,但当我尝试进行迁移时,我得到了一个错误,并且没有迁移到数据库。怎么了?
SQLSTATE42S01:基表或视图已存在: 1050表'users‘已存在(SQL: create table users (id int unsigned not null auto_increment primary key,name varchar(255) not null,email varchar(255) not null,password varchar(255) not null,remember_tok
我从名为laravel的Laravel5.4数据库中删除了migrations表。当我运行php artisan migrate:install时,我得到这个错误:
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [2002] No such file or directory
(SQL: select * from information_schema.tables where table_schema = laravel
and table_name = migrations)
我删除并重新创建了数据库。我还运行了compo
我有两台机器。一个是php 5.6,另一个是php 7。
php 5.6的版本有:
[root@bd-mg ~]# mysql --version mysql Ver 15.1 Distrib 10.1.23-MariaDB, for Linux (x86_64) using readline 5.1
另一个使用php 7的版本有:
[root@XXX]# mysql --version mysql Ver 15.1 Distrib 5.5.59-MariaDB, for Linux (x86_64) using readline 5.1
当我使用php 5.6在机器上运行迁移时,我没有任
当我尝试使用artisan进行迁移时,收到此错误消息
[Illuminate\Database\QueryException]
SQLSTATE[HY000] [1045] Access denied for user 'myuser'@'mycomputerip'
(using password: YES) (SQL: select * from information_schema.tables where t
able_schema = database and table_name = migrations)
[PDOException]
SQLST
我随机收到服务器错误,因为Laravel正在尝试连接到生产数据库,尽管我设置了一个.env文件,并且大部分时间它都连接到正确的数据库。
下面是我收到的错误:
[2018-02-17 08:05:54] production.ERROR: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table_schema = forge and t
在我的项目中创建多个迁移之后,我想回滚来更新一些东西,但是当我尝试删除projects表时突然发现了这个错误。我检查了外键约束,但找不到错误。
[Illuminate\Database\QueryException]
SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or upda
te a parent row: a foreign key constraint fails (SQL: drop table `pr
我试着在迁移关系中做一个POS系统。在运行migrate来建立关系之前,我使用了Doctrine/DBAL。安装Doctrine/DBAL之后,当我运行迁移时,出现一个未知的database错误。如何修复此错误? 这是Laravel 5,运行迁移时出现运行错误: Illuminate\Database\QueryException : SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that Illuminate\D
我现在正在处理一个Laravel应用程序,但是当我现在运行php artisan migrate时,突然间我总是会遇到错误:
SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into `migrations` (`migration`, `batch`) values (2019_06_05_080701_create_departments_table, 22))
我不知道为什么会发生这种事,因为这种事以前从来没有发生过。当我试图迁移一个
在运行迁移时,我得到了以下错误:
PDOException::("SQLSTATE42S21:列已存在: 1060重复列名'role_id'")
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the m
我将laravel项目从windows移到ubuntu,完成了所需的一切(安装php、composer .)然后,当我运行php artisan移植来创建我的数据库表时,它说:
In Connection.php line 664:
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from informa
tion_schema.tables where