how to solve this error in laravel
-
could not find driver (SQL: insert into
tasks
(task
,updated_at
,created_at
) values (testing, 2020-01-02 09:57:44, 2020-01-02 09:57:44)) -
Just install php mysql driver on your system. Please check your PHP version and install appropriate version..
-
do you have any refference regarding the installation,cuz I feel like lost :|
-
@ChrisSachintha
composer update composer require doctrine/dbal
or , install php mysql, ex (php 7.1 mysql in ubuntu) :
sudo apt-get install php7.1-mysql
did you run this laravel project under xampp or wamp ?
-
xamp in windows 7 php 7.4.0
-
@ChrisSachintha
Uncommented this line in php.ini:
extension=php_mysqli.dll
-
@root already did but nothing happened :(
-
@ChrisSachintha
did you restart the xampp server ?
one more thing to do , check if mysql is loaded to the php running
<?php phpinfo(); ?>
-
@root it also works
-
@ChrisSachintha
did you run this ?
composer update composer require doctrine/dbal
-
@root yep
-
@ChrisSachintha
run this
composer dump-autoload -o
-
@root said in how to solve this error in laravel:
composer dump-autoload -o
done it says generated optimized autoload files containing 1193 classes
-
@ChrisSachintha
now check laravel mysql connection
-
same results
-
@ChrisSachintha
still have that error ?
-
@root yep, maybe bad luck :pig:
-
@ChrisSachintha
can you access phpmyadmin ?
-
@root yep
-
@root if you have anydesk or teamviewer i can give access