Laravel Beginner tutorial | What is migrations and how to use it ?
Vložit
- čas přidán 30. 04. 2019
- 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
Check bitfumes.com For ads free and more advanced courses
Join Our Slack Community - goo.gl/pqCjZH
==================FOLLOW ME ==================
Subscribe for New Releases!
Twitter - / bitfumes
Facebook - / bitfumes
Instagram - / bitfumes
(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.
Email me support@bitfumes.com
Thanks for all your support!
keep them coming mate great stuff btw
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 max_allowed_packet=1073741824;
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 ('mysql.infoschema'@'localhost') 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.
I also got the same error, do you found any solution
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
Illuminate\Database\QueryException
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 vendor/laravel/framework/src/Illuminate/Database/Connection.php:671
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
You have already made video on laravel, haven't you?
This is for the new version of laravel
i don't know how to use terminal
hey I have problem while migrating
Illuminate\Database\QueryException : 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
did you have the solution yet ?
I'm having the same problem.
Please restart your laravel server
@@dhruvinprajapati4345 I restarted the server but still got the same error
I've solved this problem by creating the Database in PHP, just the Database, what migrate does is it creates and migrates tables to a Database without a hassle.
So if my "DB_DATABASE=" in my .env file is named "laravelDB", you must create a "laravelDB" first into your PhpMyAdmin, so that if you run "php artisan migrate" it'll recognized the Database name at migrates to it.
Hope this helps!