|
You last visited: Today at 17:05
Advertisement
Flyff Sapphire Website ODBC
Discussion on Flyff Sapphire Website ODBC within the Flyff Private Server forum part of the Flyff category.
07/03/2016, 18:08
|
#1
|
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 14
|
Flyff Sapphire Website ODBC
Hello,
I want to use the Sapphire Website on my Server, but somehow it can not connect to my MSQL 2012 Server. It uses Windows Auth!
I tried some different connectionstrings and noticed the odbc_error():
Code:
define('ODBC_USER', ''); //
define('ODBC_PASS', ''); //
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=localhost\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
Error: "CONFI"
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};SERVER=localhost\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
Error: 28000 (Invalid authorization specification)
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};SERVER=localhost\SQLEXPRESS;Trusted_Connection=Yes;', ODBC_USER, ODBC_PASS);
Error: "CONFI"
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};SERVER=localhost;', ODBC_USER, ODBC_PASS);
Error: 08001 (Unable to connect to data source)
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=localhost;', ODBC_USER, ODBC_PASS);
Error: 08001 (Unable to connect to data source)
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=localhost;Trusted_Connection=Yes;', ODBC_USER, ODBC_PASS);
Error: 08001 (Unable to connect to data source)
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};SERVER=H2596234\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
Error: 08001 (Unable to connect to data source)
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=H2596234\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
Error: 08001 (Unable to connect to data source)
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server Native Client 11.0};SERVER=H2596234\SQLEXPRESS;Trusted_Connection=Yes;', ODBC_USER, ODBC_PASS);
Error: 08001 (Unable to connect to data source)
EDIT:
I'm not sure but do I need a entry at the odbc-datasources?
I did it like the other dbs with "website" as name and WEBSITE_DBF as defaultdb.
EDIT2:
I heared that IIS dont want a Winauth.. so I set a password for sa. But it still give me that error :/
|
|
|
07/03/2016, 19:20
|
#2
|
elite*gold: 0
Join Date: May 2014
Posts: 4,408
Received Thanks: 934
|
Hello Capt. Jack,
you need to copy your servername from your SQL express.
Example: Than paste it here:
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=MICHI-PC\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
If you have a username or a password than paste it here:
Code:
define('ODBC_USER', 'HERE USERNAME');
define('ODBC_PASS', 'HERE PASSWORD');
Please try it out and say us if its working or not.
Greets
'Dude'
|
|
|
07/03/2016, 20:42
|
#3
|
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 14
|
Quote:
Originally Posted by 'Dude'
Hello Capt. Jack,
you need to copy your servername from your SQL express.
Example: Than paste it here:
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=MICHI-PC\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
If you have a username or a password than paste it here:
Code:
define('ODBC_USER', 'HERE USERNAME');
define('ODBC_PASS', 'HERE PASSWORD');
Please try it out and say us if its working or not.
Greets
'Dude'
|
It tested it like this:
Code:
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER=H2596234\SQLEXPRESS;', ODBC_USER, ODBC_PASS);
It causes the errorcode: 08001 (Unable to connect to data source)
and
Code:
define('ODBC_USER', '');
define('ODBC_PASS', '');
.. because I use Windows Auth
|
|
|
07/03/2016, 22:24
|
#4
|
elite*gold: 18
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
|
If you're using IIS change user name to IUSR
|
|
|
07/04/2016, 08:23
|
#5
|
elite*gold: 0
Join Date: Oct 2012
Posts: 1,102
Received Thanks: 564
|
What is your PHP Version?
|
|
|
07/04/2016, 10:42
|
#6
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
|
Quote:
Originally Posted by Chyukαsame
What is your PHP Version?
|
Bitte. Nein. Lass es...
If you're using windows auth with ODBC, you better create a system data source name (DSN) and reference it in your odbc_connection string (you can leave out user and password then).
As driver, SQL Server Native Client and SQL Server should both do it. But Native Client is always better in terms of PHP compabitlity.
Your DSN name can be any, you decide.
Your server should be [COMPUTER / SERVERNAME]\SQLEXPRESS (if you are using SQL Server Express version, this is your name), but this is always correct:
Quote:
If the user you are connecting to SQL Server is your active user, you can use builtin NT authentication (which is what you want, I guess).
Else you should reference your NT User and Password in the ODBC_USER and ODBC_PASS constants, of course.
If this is not working, you'll have to stick to SQL Server auth.
|
|
|
07/04/2016, 14:01
|
#7
|
elite*gold: 0
Join Date: Oct 2012
Posts: 1,102
Received Thanks: 564
|
Quote:
Originally Posted by xTwiLightx
Bitte. Nein. Lass es...
|
Dir ist bekannt, dass die Sapphire FlyFF Webseite ab PHP 7 odbc_conntect Fehler ausgibt?
Abey hey, du weißt ja alles besser :*
Falls du es nicht wissen solltest (fk dann geht bestimmt auch die Welt unter)
Der Error Reporting gibt diesen Fehler ab PHP 7 aus: Call to undefined function odbc_connect()
|
|
|
07/04/2016, 14:25
|
#8
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
|
Quote:
Originally Posted by Chyukαsame
Dir ist bekannt, dass die Sapphire FlyFF Webseite ab PHP 7 odbc_conntect Fehler ausgibt?
Abey hey, du weißt ja alles besser :*
Falls du es nicht wissen solltest (fk dann geht bestimmt auch die Welt unter)
Der Error Reporting gibt diesen Fehler ab PHP 7 aus: Call to undefined function odbc_connect()
|
Wenn das so wäre, würde gar kein Fehler wegen 'invalid credentials' oder 'cannot connect to server' ausgegeben, sondern der von dir besagte.
Ist das der Fall? Nein.
Und nein, Fehler gestackt wird nicht, weil ein nicht vorhandenes ODBC Modul keine ODBC-Fehler ("SQL Server 12345: Error XYZ") ausgeben kann.
Quote:
Originally Posted by Capt. Jack
EDIT:
I'm not sure but do I need a entry at the odbc-datasources?
I did it like the other dbs with "website" as name and WEBSITE_DBF as defaultdb.
EDIT2:
I heared that IIS dont want a Winauth.. so I set a password for sa. But it still give me that error :/
|
First: Yes, that's what I mentioned with DSN.
Second: It should be possible, since IIS is a windows application - why shouldn't it use Win NT Auth?  It might be some configuration with it's FastCGI module or php.ini -> cgi settings.
|
|
|
07/04/2016, 14:35
|
#9
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
Offtopic sirs  how to fix this error "Could not create output directory 'g:\program'. ??
Please help me!
|
|
|
07/04/2016, 16:08
|
#10
|
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 14
|
Quote:
Originally Posted by Sedrika
If you're using IIS change user name to IUSR
|
Doesn't fix the issue.
Quote:
Originally Posted by Chyukαsame
What is your PHP Version?
|
I use PHP 7 and I got at first the error. But I already fixed it with
Code:
extension=php_odbc.dll
Quote:
Originally Posted by xTwiLightx
Wenn das so wäre, würde gar kein Fehler wegen 'invalid credentials' oder 'cannot connect to server' ausgegeben, sondern der von dir besagte.
Ist das der Fall? Nein.
Und nein, Fehler gestackt wird nicht, weil ein nicht vorhandenes ODBC Modul keine ODBC-Fehler ("SQL Server 12345: Error XYZ") ausgeben kann.
First: Yes, that's what I mentioned with DSN.
Second: It should be possible, since IIS is a windows application - why shouldn't it use Win NT Auth?  It might be some configuration with it's FastCGI module or php.ini -> cgi settings.
|
Chyukαsame is right there was an error. But I already fixed that error.
I tried many configs with other DSNs.. One configuration works now. The server still uses Win Auth, but the Website has an own User for MSQL.
Quote:
Originally Posted by yazuka21
Offtopic sirs  how to fix this error "Could not create output directory 'g:\program'. ??
Please help me!
|
Check Solutionsettings or Projectfolder setup...
|
|
|
07/05/2016, 01:58
|
#11
|
elite*gold: 0
Join Date: Nov 2011
Posts: 4,889
Received Thanks: 800
|
Check the linker settings
|
|
|
 |
Similar Threads
|
ODBC der Website auf Remoteserver?
12/02/2014 - Flyff Private Server - 15 Replies
Hallo,
ich wollte mal fragen wie ich die ODBC-Verbindung von PHP auf einen externen Server zeigen lasse. Habe auf dem MS SQL Server schon Remotezugriff per TCP/IP eingeschaltet da das denke ich mal von nöten sein wird.
Momentaner Versuch:
$odbc_connect = odbc_connect('DRIVER={SQL Server};Server=<hieripeintragen>;Database=SQ LEXPRESS;', ODBC_USER, ODBC_PASS);
|
About Sapphire FlyFF website
06/12/2014 - Flyff Private Server - 4 Replies
this link: http://www.elitepvpers.com/forum/flyff-pserver-gui des-releases/3142307-release-support-sapphire-flyf f.html
The site release in here is safe to use??
release support sapphire if there's any backdoor?
|
Sapphire Flyff Website Reupload
11/17/2013 - Flyff Private Server - 4 Replies
hey leute kann wer mal die:
Non-Cronjob Websitepaket von hier: http://www.elitepvpers.com/forum/flyff-pserver-gui des-releases/1820955-release-sapphireflyff-website .html reuploaden?
danke im vorraus ;)
|
All times are GMT +1. The time now is 17:08.
|
|