Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error when connect with sql server 2008 #42

Open
Dazzel opened this issue Apr 27, 2012 · 0 comments
Open

Fatal error when connect with sql server 2008 #42

Dazzel opened this issue Apr 27, 2012 · 0 comments
Labels

Comments

@Dazzel
Copy link

Dazzel commented Apr 27, 2012

Ticket #744 by @phuocdaivl08

try {
    $db  = new fDatabase('mssql', 'TEST', 'sa', '123456','PHUOCDAI-PC\SQLEXPRESS');
    // Please note that calling this method is not required, and simply
    // causes an exception to be thrown if the connection can not be made
    $db->connect();

} catch (fAuthorizationException $e) {
    $e->printMessage();
}

Fatal error: Uncaught exception 'fConnectivityException' with message 'Unable to connect to database - hostname not found' in C:\AppServ?\inc\flourish\fDatabase.php:2057 Stack trace: #0 C:\AppServ?\inc\flourish\fDatabase.php(797): fDatabase→handleConnectionErrors(Array) #1 C:\AppServ?\www\posttin\c.php(31): fDatabase→connect() #2 {main} thrown in C:\AppServ?\inc\flourish\fDatabase.php on line 2057

Can you help me? How to fix this error? I'm from VietNam?. My English is not good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant