Laravel Beginner tutorial | What is migrations and how to use it ?

preview_player
Показать описание
Migrations are used to create table schema or structure.
In laravel migrations also used to migrate table directly into database with one single command.

Laravel Beginner tutorial - from download to deploy

==================FOLLOW ME ==================

Subscribe for New Releases!

(ask me questions!)

--- QUESTIONS? ---

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support!
Рекомендации по теме
Комментарии
Автор

I got this error when typing php artisan migrate:


SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: select * from information_schema.tables where table_schema = laravelForBeginner and table_name = migrations and table_type = 'BASE TABLE')


In Sequel Pro I noticed no password was set but trying to set one didn't work. I've tried various things and now get this message when trying php artisan migrate:


SQLSTATE[HY000]: General error: 1449 The user specified as a definer does not exist (SQL: select * from information_schema.tables where table_schema = laravelForBeginner and table_name = migrations and table_type = 'BASE TABLE')


It's a shame because I've come a long way with these videos and I would like to progress on to the Udemy videos but am now in a mess and clueless as to where to go next if I can't get the basic install working.

chriscannon
Автор

I got this when use "php artisan migrate"
PDOException : SQLSTATE[HY000] [2006] MySQL server has gone away

Could somebody help me fix this?
I had set global

vincentgunawan
Автор

hi sir
i am using mac book install everything step by step the way you did but when i do php artisan migrate i am getting this error i delete every things and install all again but i m not going one step ahead from here please help me with this issue.
thanks in advance



SQLSTATE[HY000] [1049] Unknown database 'wali' (SQL: select * from information_schema.tables where table_schema = wali and table_name = migrations and table_type = 'BASE TABLE')

at
667| // If an exception occurs when attempting to run a query, we'll format the error
668| // message to include the bindings with SQL, which will make this exception a
669| // lot more helpful to the developer instead of just the database's errors.
670| catch (Exception $e) {
> 671| throw new QueryException(
672| $query, $this->prepareBindings($bindings), $e
673| );
674| }
675|

+34 vendor frames
35 artisan:37

jandeer
Автор

hey I have problem while migrating

: SQLSTATE[HY000]: General error: 1449 The user specified as a definer ('mysq
l.infoschema'@'localhost') does not exist (SQL: select * from information_schema.tables where table_schema = blog an
d table_name = migrations and table_type = 'BASE TABLE')

this error come when i try to migrate

can you please help me

dhruvinprajapati
Автор

You have already made video on laravel, haven't you?

mukeshrai
visit shbcf.ru