diff --git a/phpgwapi/inc/class.db_mysql.inc.php b/phpgwapi/inc/class.db_mysql.inc.php index a5a55d1073..6e9f39fab7 100644 --- a/phpgwapi/inc/class.db_mysql.inc.php +++ b/phpgwapi/inc/class.db_mysql.inc.php @@ -73,8 +73,6 @@ class db { if ("" == $Password) $Password = $this->Password; -echo "user: $User using: $Password on db: $Database
"; - /* establish connection, select database */ if ( 0 == $this->Link_ID ) { $this->Link_ID=mysql_pconnect($Host, $User, $Password); @@ -461,8 +459,6 @@ echo "user: $User using: $Password on db: $Database
"; $this->query("grant all on $currentDatabase.* to $currentUser@localhost identified by '$currentPassword'"); $this->disconnect(); -echo "grant command: grant all on $currentDatabase.* to $currentUser@localhost identified by '$currentPassword'
"; - $this->User = $currentUser; $this->Password = $currentPassword; $this->Database = $currentDatabase; diff --git a/phpgwapi/inc/class.db_pgsql.inc.php b/phpgwapi/inc/class.db_pgsql.inc.php index 4ab2936f9c..248e96cce9 100644 --- a/phpgwapi/inc/class.db_pgsql.inc.php +++ b/phpgwapi/inc/class.db_pgsql.inc.php @@ -334,8 +334,8 @@ class db { $this->Database = "mysql"; } $this->disconnect(); - $this->query("CREATE DATABASE $currentDatabase"); - $this->query("grant all on $currentDatabase.* to $currentUser@localhost identified by '$currentPassword'"); + $this->query("CREATE DATABASE $currentDatabase"); + $this->query("grant all on $currentDatabase.* to $currentUser@localhost identified by '$currentPassword'"); $this->disconnect(); $this->User = $currentUser;