how to install mysql extension for php code example Example: install php mysql extension ubuntu sudo apt-get install php7.2-mysql