could not find driver (SQL: select * from information_schema.tables where table_schema = francis_koopmart and table_name = migrations and table_type = 'BASE TABLE') 1

could not find driver (SQL: select * from information_schema.tables where table_schema = francis_koopmart and table_name = migrations and table_type = ‘BASE TABLE’)

If your php.ini file exists then in configuration file simply uncomment the extension:

;extension=php_pdo_mysql.dll 

Else follow below steps

step1:php -v

step2: Install php mysql extension

php 7.0 sudo apt-get install php7.0-mysql

php 7.1 sudo apt-get install php7.1-mysql

php 7.2 sudo apt-get install php7.2-mysql

php 7.3 sudo apt-get install php7.3-mysql

step3: service apache2 restart

step4: php artisan migrate

Here is what the above code is Doing:
1. We’re using the Illuminate\Support\Facades\Schema facade to access the Schema class.
2. We’re using the Schema::create method to create a new table.
3. We’re using the string method to create a new string column.
4. We’re using the timestamps method to create two new columns: created_at and updated_at.
5. We’re using the rememberToken method to create a new remember_token column.
6. We’re using the dropIfExists method to drop the table if it already exists.

Similar Posts