anvc / scalar

Born-digital, open source, media-rich scholarly publishing that’s as easy as blogging.
Other
231 stars 73 forks source link

ARC2 fails to connect to MySQL running on non-standard port #17

Closed zploskey closed 9 years ago

zploskey commented 9 years ago

I've set up an instance of Scalar running here at the University of Washington. As it is a shared hosting environment, we need to run our instance of MySQL on a unique port. I added a port to system/application/config/database.php as described in the CodeIgniter documentation: $db['default']['port'] = 1234; This works and lets us connect to the database from the CI application, but apparently not from ARC2. I am getting these error messages multiple times on every page I access:

A PHP Error was encountered

Severity: Warning

Message: mysqli_connect(): (HY000/2005): Unknown MySQL server host 'oursubdomain.u.washington.edu:1234' (2)

Filename: store/ARC2_Store.php

Line Number: 51

It appears arc is not properly passing the separate $port parameter to mysqli_connect as is required.