|
You last visited: Today at 13:53
Advertisement
[HELP] Website (No connection to the Database.)
Discussion on [HELP] Website (No connection to the Database.) within the Flyff Private Server forum part of the Flyff category.
03/24/2017, 09:00
|
#1
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
[HELP] Website (No connection to the Database.)
Hi guys.. I have a problem with my website configuration...
I already edit my xinc_config.
And I am using Plesk Host, I really don't know how I can fix this one.
Everytime I open my website it gives me alot of errors.
I'am 100% sure that the SQL Password "MY SQL PASSWORD" is correct then the "IP ADDRESS,1433" is also 100% correct
define('MSSQL_HOST', 'IP ADDRESS,1433'); // MsSQL Host
define('ODBC_USER', 'sa'); //
define('ODBC_PASS', 'MY SQL PASSWORD'); //
$odbc_connect = odbc_connect('DRIVER={SQL Server};SERVER='.'IP ADDRESS,1433'.';', 'sa','MY SQL PASSWORD');
With Website error
Warning: odbc_connect(): SQL error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied., SQL state 08001 in SQLConnect in C:\Inetpub\vhosts\flyff.net\httpdocs\includes\xinc _config.php on line 16
Warning: odbc_exec() expects parameter 1 to be resource, boolean given in C:\Inetpub\vhosts\flyff.net\httpdocs\index.php on line 105
Warning: odbc_result() expects parameter 1 to be resource, null given in C:\Inetpub\vhosts\flyff.net\httpdocs\index.php on line 105
Please help me
|
|
|
03/24/2017, 09:17
|
#2
|
ベトナム警察
elite*gold: 0
Join Date: Jan 2012
Posts: 16,499
Received Thanks: 3,527
|
Try to delete sa and mssql pw. (Leave it empty) It works me. :3
|
|
|
03/24/2017, 09:25
|
#3
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
Quote:
Originally Posted by Lumi
Try to delete sa and mssql pw. (Leave it empty) It works me. :3
|
Sorry :3
still the same .
|
|
|
03/24/2017, 13:48
|
#4
|
elite*gold: 18
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
|
Set Trusted_Connection=no; in your connection string.
Also open sql configurator on main destination and allow ip connections and instead of dynamic ports change it to 1433 fixed. After that restart SQL server on services and it should work after that.
|
|
|
03/24/2017, 14:51
|
#5
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
Quote:
Originally Posted by Sedrika
Set Trusted_Connection=no; in your connection string.
Also open sql configurator on main destination and allow ip connections and instead of dynamic ports change it to 1433 fixed. After that restart SQL server on services and it should work after that.
|
Sir You mean this ?
Quote:
Originally Posted by Sedrika
Set Trusted_Connection=no; in your connection string.
Also open sql configurator on main destination and allow ip connections and instead of dynamic ports change it to 1433 fixed. After that restart SQL server on services and it should work after that.
|
I reviece a new website error I hope you can help me sir..
Fatal error: Uncaught Error: Call to undefined function odbc_connect() in C:\Inetpub\vhosts\pixieflyff.net\httpdocs\includes \xinc_config.php:16 Stack trace: #0 C:\Inetpub\vhosts\pixieflyff.net\httpdocs\index.ph p(4): require_once() #1 {main} thrown in C:\Inetpub\vhosts\pixieflyff.net\httpdocs\includes \xinc_config.php on line 16
|
|
|
03/24/2017, 15:26
|
#6
|
elite*gold: 18
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
|
Also set at IPAll => TCP Dynamic Ports to 0 and now enable pdo_odbc in php or without the pdo. After it should work. And don't forget to restart the SQL Services again.
|
|
|
03/24/2017, 15:38
|
#7
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
Quote:
Originally Posted by Sedrika
now enable pdo_odbc in php or without the pdo. After it should work. And don't forget to restart the SQL Services again.
|
I'm sorry but I don't know where to locate this with Plesk host..
and there's no php.ini...
|
|
|
03/24/2017, 17:23
|
#8
|
elite*gold: 18
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
|
No clue. Never worked with plesk. You gotta find it but at the end it should done it's work.
|
|
|
03/24/2017, 17:54
|
#9
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
Quote:
Originally Posted by Sedrika
No clue. Never worked with plesk. You gotta find it but at the end it should done it's work.
|
I have new error sir I hope it can help..
C:\Inetpub\vhosts\pixieflyff.net\httpdocs\includes \xinc_config.php on line 16
Warning: odbc_exec() expects parameter 1 to be resource, boolean given in C:\Inetpub\vhosts\pixieflyff.net\httpdocs\index.ph p on line 111
Warning: odbc_result() expects parameter 1 to be resource, null given in C:\Inetpub\vhosts\pixieflyff.net\httpdocs\index.ph p on line 111
This error shows when I changed PHP 7.0.17 to PHP 5.4.45..
With the error says there;s no database connection in index.php line 111 when I try to check that line it is 'checkDatabaseConnection' but there's already executed 'checkDatabaseConnection' in my database.
|
|
|
03/25/2017, 02:49
|
#10
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 218
|
Read the error, you should know and read the error were the error said. Plesk is easy.
|
|
|
03/25/2017, 05:40
|
#11
|
elite*gold: 0
Join Date: Mar 2014
Posts: 305
Received Thanks: 19
|
Quote:
Originally Posted by Ecrypter
Read the error, you should know and read the error were the error said. Plesk is easy.
|
I do all my best but I really don't know how to fix this :3
C:\Inetpub\vhosts\pixieflyff.net\httpdocs\includes \xinc_config.php on line 16
Warning: odbc_exec() expects parameter 1 to be resource, boolean given in C:\Inetpub\vhosts\pixieflyff.net\httpdocs\index.ph p on line 111
Warning: odbc_result() expects parameter 1 to be resource, null given in C:\Inetpub\vhosts\pixieflyff.net\httpdocs\index.ph p on line 111
Line 111 in index.php is checkDatabaseConnect but I already executed that sql..
|
|
|
03/27/2017, 13:34
|
#12
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 218
|
If you buy a plesk from phytonhost they have a tutorial on how to setup website on plesk panel also in sql server.
|
|
|
 |
Similar Threads
|
TClient connection with database
06/30/2016 - 4Story - 0 Replies
Hello, I have 5.1 database. The server is already running, but I can't connect to the server via my client.
Has someone any ideas how to connect with it?
|
Database Connection was lost
11/08/2012 - SRO Private Server - 0 Replies
I don't know what to do. tried different things but after a little while. Server gives this error again and again after every second.
Also the ability to open SQL is gone. So i can't open SMC again or join SQL after this message appear.
Does anyone maybe have a reason for this problem?
http://www.abload.de/img/unbenannt3vkw1.jpg
|
database connection was lost!!!!
05/15/2012 - SRO Private Server - 5 Replies
hi all,
i have problems with my second gameserver the #1 run without problems
but the second get some times a ERROR like this -> database connection was lost!!!! and the service is off and i need to restart both server
screenshot:
http://www.abload.de/img/untitledqjkgz.jpg
|
Database Connection.
03/04/2012 - Metin2 Private Server - 4 Replies
Hello beloved community.
Me and my friend, did a private server, with the deathy2 serverfiles. Now! is there any way that i can connect to my friends database with the serverfiles, so i can help him do shops and stuff?
Thanks.
|
Database Connection
09/27/2009 - CO2 Private Server - 1 Replies
Hey guys, I have set up my 5065 server with a mate, and we need to connect him to the database to help with the translating etc. I have tried joining him with the hamachi IP, local IP, and also my internet IP. I have a feeling the port needs to be changed from 3306 to something else, Thanks guys.
|
All times are GMT +1. The time now is 13:54.
|
|