There is no pdo extension in the php installed by default, so an error will be reported when it is used, so use this command directly
apt-get install php-mysql
You can successfully install the pdo extension
After installing the database, you need to import the sql statement, first enter the database to create the database name in advance, such as the database of laykefu, -u -p database name, followed by the address of the sql file, you can import it
mysql -uroot -proot laykefu < /mnt/f/ubuntu/phpProject/laykefu/l
Recommended Posts