Error after install wordpress in ubuntu 18.10.1

Solution:

You need to install mysql extension :

apt-get update

apt-get install php7.0-mysql

And then restart apache

systemctl restart apache2