Unable to use chive with other port than default 3306

Bug #910555 reported by Andrew
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
chive
Confirmed
Medium
Unassigned

Bug Description

I need use Chive with Mysql connected to port 3406.
Setting host to localhost:3406 or 127.0.01:3406 is not working.

I must change port manually in code (version 1.0.1) by adding ;port=3406 before ;dbname=:
H:\Program Files\EasyPHP-5.3.8.0\chive\index.php (1 hits)
    Line 34: $app->db->connectionString = 'mysql:host=' . $app->user->host . ';port=3406;dbname=information_schema';
  H:\Program Files\EasyPHP-5.3.8.0\chive\protected\components\UserIdentity.php (1 hits)
    Line 54: $db->connectionString = 'mysql:host=' . $this->host . ';port=3406;dbname=information_schema';
  H:\Program Files\EasyPHP-5.3.8.0\chive\protected\config\main.php (1 hits)
    Line 92: 'connectionString' => 'mysql:host=localhost;port=3406;dbname=information_schema',
  H:\Program Files\EasyPHP-5.3.8.0\chive\protected\config\tests.php (1 hits)
    Line 31: 'connectionString' => 'mysql:host=localhost;port=3406;dbname=information_schema',
  H:\Program Files\EasyPHP-5.3.8.0\chive\protected\controllers\Controller.php (1 hits)
    Line 50: $this->db = new CDbConnection('mysql:host=' . Yii::app()->user->host . ';port=3406;dbname=' . $schema . '; charset=utf8',
  H:\Program Files\EasyPHP-5.3.8.0\chive\protected\controllers\PrivilegesController.php (1 hits)
    Line 66: $this->db = new CDbConnection('mysql:host=' . Yii::app()->user->host . ';port=3406;dbname=mysql',
  H:\Program Files\EasyPHP-5.3.8.0\chive\protected\tests\ChiveTestCase.php (1 hits)
    Line 39: $db = new CDbConnection('mysql:host=' . ChiveTestCase::DB_HOST . ';port=3406;dbname=' . $dbName, ChiveTestCase::DB_USER, ChiveTestCase::DB_PASSWORD);
  H:\Program Files\EasyPHP-5.3.8.0\chive\yii\cli\views\webapp\protected\config\main.php (1 hits)
    Line 54: 'connectionString' => 'mysql:host=localhost;port=3406;dbname=testdrive',

Is it possible to setup port number in login dialog and use it in those places?

Tags: change port
Revision history for this message
David Roth (davrot) wrote :

Yes, I think it makes sense if this would be available via textbox on the login-form.

Changed in chive:
status: New → Confirmed
David Roth (davrot)
Changed in chive:
importance: Undecided → Medium
Revision history for this message
Bas de Kwant (basdekwant) wrote :

Yeah, or even via a config file would be nice, won't it?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.