Required properties to connect DB from scripts ?
October 6th, 2009
The most important properties required to connect DB from scripts ( PHP,CGI or Perl ) are
database server : localhost
database name : cpanelusername_testdb
database username : cpanelusername_dbuser
database user password : *****
Note: DB server name is always “localhost”. It means they connect to DB only from scripts inside the server. If the client trying to connect DB from his pc ( remotely ) then he will get errors becuase we have blocked mysql remote port 3306. Clients are not allowed to connect DB remotely.