Database Setup
- Go to
AboveWebRoot
>
autoload
>
DatabaseConnection.php
- Fill in the missing details of the file
class DatabaseConnection {
static function connect() {
return new DB\SQL(
'mysql:host=localhost;port=3306;dbname=<UUN>',
'<UUN>',
'PASSWORD'
);
}
}
- Refer to the
database_info.txt
for yourPASSWORD
. - Your
is your student number e.g. s12345678. e.g.
class DatabaseConnection {
static function connect() {
return new DB\SQL(
'mysql:host=localhost;port=3306;dbname=s12345678',
's12345678',
'PASSWORD'
);
}
}