Call to undefined function mysql_error() when install extension CiviHR for CiviCRM
It sounds like CiviHR is still using the php-mysql extension not php-mysqli. You can try installing php-mysql, or asking your hosting provider to do it, but if they're running a fairly recent server they may not be able to.