PhpMyAdmin is the most popular web interface for MySql whereas nginx is becoming a popular choice for web server. Here we will be going thourgh the process of setup a PhpMyAdmin instance with Nginx, in an Ubuntu 18.04 server. The steps may vary slightly for other ubuntu versions.
sudo apt-get install phpmyadmin

As we will be using Nginx as web server, don’t select any of the options & enter “Ok”
/usr/share/phpmyadmin. We will create a symlink to /var/www/html using following command
    sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
/nginx/sites-available/phpmyadmin & put below content
    server {
      root /var/www/html;
      # Add index.php to the list if you are using PHP
      index index.php index.html index.htm index.nginx-debian.html;
      server_name ***.**.***.*;
      location ~ \.php$ {
         include snippets/fastcgi-php.conf;
         fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include fastcgi_params;
     }
}
sudo nginx -t. If no error found, restart nginx by sudo service restart nginx[Your_IP]/phpmyadmin web address/var/www/html by command sudo mv phpmyadmin mydb[Your_IP/mydb] web address