Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 17:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Flyff Sapphire Website ODBC

Discussion on Flyff Sapphire Website ODBC within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #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():

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 :/
Capt. Jack is offline  
Old 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'
Michi is offline  
Old 07/03/2016, 20:42   #3
 
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 14
Quote:
Originally Posted by 'Dude' View Post
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
Capt. Jack is offline  
Old 07/03/2016, 22:24   #4



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
If you're using IIS change user name to IUSR
Sedrika is offline  
Old 07/04/2016, 08:23   #5

 
Chyukαsame's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 1,102
Received Thanks: 564
What is your PHP Version?
Chyukαsame is offline  
Old 07/04/2016, 10:42   #6
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
Quote:
Originally Posted by Chyukαsame View Post
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:
localhost\SQLEXPRESS
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.
xTwiLightx is offline  
Old 07/04/2016, 14:01   #7

 
Chyukαsame's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 1,102
Received Thanks: 564
Quote:
Originally Posted by xTwiLightx View Post
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()
Chyukαsame is offline  
Old 07/04/2016, 14:25   #8
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
Quote:
Originally Posted by Chyukαsame View Post
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 View Post
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.
xTwiLightx is offline  
Old 07/04/2016, 14:35   #9
 
yazuka21's Avatar
 
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!
yazuka21 is offline  
Old 07/04/2016, 16:08   #10
 
elite*gold: 0
Join Date: May 2015
Posts: 44
Received Thanks: 14
Quote:
Originally Posted by Sedrika View Post
If you're using IIS change user name to IUSR
Doesn't fix the issue.

Quote:
Originally Posted by Chyukαsame View Post
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 View Post
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 View Post
Offtopic sirs how to fix this error "Could not create output directory 'g:\program'. ??
Please help me!
Check Solutionsettings or Projectfolder setup...
Capt. Jack is offline  
Thanks
1 User
Old 07/05/2016, 01:58   #11



 
Flogolo's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 4,889
Received Thanks: 800
Check the linker settings
Flogolo is offline  
Reply

Tags
flyff, odbc, sapphire, website


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.