$db->query("SELECT count(0) as count from db where uid = ?;",array($cuid));
$db->next_record();
if($db->f('count')==0){
$msg->raise("ERROR","mysql",_("Cannot connect to PhpMyAdmin, no databases for user {$cuid}"));
returnfalse;
}
$db->query("SELECT dbu.name,dbu.password, dbs.host FROM dbusers dbu, db_servers dbs, membres m WHERE dbu.uid= ? and enable='ADMIN' and dbs.id=m.db_server_id and m.uid= ? ;",array($cuid,$cuid));
if(!$db->num_rows()){
$msg->raise("ERROR","mysql",_("Cannot connect to PhpMyAdmin"));
$msg->raise("ERROR","mysql",_("Cannot connect to PhpMyAdmin, no admin user for uid {$cuid}"));
@@ -626,7 +636,7 @@ if [ "$HAS_ROOT" != "1" ]; then
echo"* *"
echo"*******************************************"
else
echo"Unable to create the first AlternC account (named 'admin'). newone.php returned $?. Check your MySQL database, PHP, and the /etc/alternc/local.sh file. Also check for any error above during install."
echo"Unable to create the first AlternC account (named 'admin'). newone.php returned $NEWONE_RETVAL. Check your MySQL database, PHP, and the /etc/alternc/local.sh file. Also check for any error above during install."
fi
else
##UPDATE default db_server following /etc/alternc/my.cnf values