PHP Laravel SQL setup problem

I'm so junior and i started to setup these techniques but it give me an error
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists (Connection: mysql, SQL: create table `users` (`id` bigint unsigned not null auto_increment primary key, `name` varchar(255) not null, `email` varchar(255) not null, `email_verified_at` timestamp null, `password` varchar(255) not null, `remember_token` varchar(100) null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

at vendor\laravel\framework\src\Illuminate\Database\Connection.php:825
821▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
822▕ );
823▕ }
824▕
➜ 825▕ throw new QueryException(
826▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
827▕ );
828▕ }
829▕ }

1 vendor\laravel\framework\src\Illuminate\Database\Connection.php:571
PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists")

2 vendor\laravel\framework\src\Illuminate\Database\Connection.php:571
PDOStatement::execute()
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists (Connection: mysql, SQL: create table `users` (`id` bigint unsigned not null auto_increment primary key, `name` varchar(255) not null, `email` varchar(255) not null, `email_verified_at` timestamp null, `password` varchar(255) not null, `remember_token` varchar(100) null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

at vendor\laravel\framework\src\Illuminate\Database\Connection.php:825
821▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
822▕ );
823▕ }
824▕
➜ 825▕ throw new QueryException(
826▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
827▕ );
828▕ }
829▕ }

1 vendor\laravel\framework\src\Illuminate\Database\Connection.php:571
PDOException::("SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists")

2 vendor\laravel\framework\src\Illuminate\Database\Connection.php:571
PDOStatement::execute()
No description
15 Replies
محمد
محمد2w ago
No description
محمد
محمد2w ago
why
محمد
محمد2w ago
No description
ἔρως
ἔρως2w ago
delete the table or rename it, if you're worried then run that again or just create a new database
محمد
محمد2w ago
how do i do any of that
ἔρως
ἔρως2w ago
do you have phpmyadmin?
محمد
محمد2w ago
yes
ἔρως
ἔρως2w ago
then you can easily do it there
محمد
محمد2w ago
how i don't know
ἔρως
ἔρως2w ago
are you using the root user?
محمد
محمد2w ago
i don't know i just downloaded xampp and installed database client extension sir how do i rename the table
ἔρως
ἔρως2w ago
how did you configure thw database to work?
sebin
sebin2w ago
You can try opening your folder of database -> migrations-> file name of your database rename it or just delete the other user table. You cant have 2 same database name in your database
No description
sebin
sebin2w ago
No description
محمد
محمد7d ago
thanks so much it worked
Want results from more Discord servers?
Add your server