delete manually all table from database included migration table and rerun php artisan migrate
Migration Problem
Hi everyone! Beginner level question here:
I'm learning Laravel. I'm falling in love with it. And then, I just can't seem to get migration to work and I'm totally stuck.
I have three migrations total, under migrations folder. Only one new that I created called blog. The other two are users and password_resets, which I think came with the Laravel install. When I go to look at my tables after I ran my first migration trial (with errors) I see that users is created. There's also a table called migrations. However, I can't get the other two tables to appear.
Btw, I saw something online that I should add this line to database.php and did that. 'unix_socket' => '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock', It didn't make a difference it looks like. (also the first table seemed to have migrated before I made this change so probably unnecessary to add this)
ERRORS:
When I go and try to run php artisan migrate I get this error (also tried php artisan migrate:refresh). Error is long, and in two parts, in red boxes.
First one: [illuminate/database/queryexception], SQLState[42501]: Base table or view already exists: 1050 users already exists. (Sql create table users 'id' int unassigned not null auto increment primary key, 'name' varcar 255.... etc...
Second red box: [PDO Exception] , [SQLstate[42501]; Base table or view already exiss. 1050 users already exists.
Thank you for any help everyone!
Had
Please or to participate in this conversation.