I host the Yii application on a shared host with some of my friend and store the database on a private MySQL server. As you know, database information can be found so easily in protected\config\main.php
another host owner (my friend and much more):
'db'=>array( 'connectionString' => 'mysql:host=211.113.2.45;dbname=FamilyBook', 'emulatePrepare' => true, 'username' => root, 'password' => 'xcute445', 'charset' => 'utf8', ),
Is there any solution to hide the connection information as mySQL IP server, username, password?
Can a MySQL server provide an RSA mechanism to protect database information?
For example, any people can see below, but cannot understand or use:
'db'=>array( 'connectionString' => '57bf064b2166366a5ea61109006b8d5c', 'emulatePrepare' => true, 'username' => '63a9f0ea7bb98050796b649e85481845', 'password' => 'e04ccf211208f8c97e4a36e584926e60', 'charset' => 'utf8', ),
source share