How to change MySQL port

The port can be set in conf.php

    define('PHPGRID_DB_HOSTNAME','localhost:3000'); // database host name
    define('PHPGRID_DB_USERNAME', 'root');   // database user name
    define('PHPGRID_DB_PASSWORD', 'root'); // database password
    define('PHPGRID_DB_NAME', 'sampledb'); // database name
    define('PHPGRID_DB_TYPE', 'mysql'); // database type
    define('PHPGRID_DB_CHARSET','');

3000 is the new port number.

Feedback and Knowledge Base