How-to Install and Enable the PHP 5 MySQL Extension on Ubuntu 14.04 Trusty LTS Linux Easy Guide

June 19th, 2014 by thelinuxevangelist

Setup PHP MySQL Extension Ubuntu 14.04 Trusty




The Tutorial Shows You Step-by-Step How-to Install and Enable the PHP 5 Apache MySQL Extension Ubuntu 14.04 Trusty Tahr LTS i386/amd64 Linux Server/Desktop.

The PHP MySQL Extension dispose of 3 API’s:

  • mysql
  • mysqli
  • PDO_MySQL

It is recommended to use either the mysqli or PDO_MySQL extensions. It is not recommended to use the old mysql extension for new development, as it has been deprecated as of PHP 5.5.0 and will be removed in the future.

The mysqli, PDO_MySQL and mysql PHP extensions are lightweight wrappers on top of a C client library.

Install and Enable the PHP 5 MySQL Extension Ubuntu - Featured
  1. Login into Server Shell

    Or Open a Command Line Terminal Window
    (Press “Enter” to Execute Commands)
    Ctrl+Alt+t

    Install and Enable the PHP 5 MySQL Extension Ubuntu - Open Terminal
  2. How-to Install Netbeans IDE for PHP Development on Ubuntu:

    Install Netbeans PHP IDE for Ubuntu
  3. Install the PHP 5 MySQL Extension

    sudo su -c "apt-get install php5-mysql"
  4. Install Aptana Studio 3 IDE for Html5, Javascript, CSS, PHP:

    Install Aptana Studio3 for Ubuntu
  5. How-to Enable the PHP 5 Apache MySQL Extensions

    Enabling MySQL Extensions for Ubuntu

Tags: , , , , , , , , , , , , , , , , ,