Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 19:05

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

Advertisement



[Help] Trying to Connect SQL with my Web

Discussion on [Help] Trying to Connect SQL with my Web within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2014
Posts: 27
Received Thanks: 1
[Help] Trying to Connect SQL with my Web

Hey Guys, last night i was trying to make a Web Registration using "Abrasive Secure PHP Web Registration Script" ()

I created a new Folder in Public_Html () () (Register and Ranking) i already edited it with my Host IP- DB User and DB Password but im still having this error.

Register ()
Ranking ()

( i was trying with Xampp and Everything is working fine but i need it in my web )

Help me guys! thx.
Quesito is offline  
Old 01/17/2016, 15:44   #2
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
  • The data source you are attempting to connect to does not exist on your machine.
  • You do not have permission to access the location where the data source is stored.
  • On Linux and UNIX, your SYSTEM data sources and / or drivers are defined in non-standard files or locations and you have not set the relevant environment variable to tell unixODBC where to find them.
  • The ODBC driver that the Driver attribute points to is not installed on your machine.
    On Linux and UNIX, to display a list of installed drivers, type odbcinst -q -d.

Regards,
SkuulCandy is offline  
Thanks
2 Users
Old 01/17/2016, 18:43   #3
 
treica's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 525
Received Thanks: 805
Make sure the SQL Browser is running on your Server machine and your SQL port is open on your firewall (recommended to allow just your UNIX machine's IP to connect to SQL port).

For your registration script seem like you don't have unixODBC driver installed, you may contact the company you bought the hosting from to install it for you if you don't have root permissions.

With this PHP snippet you can check if you are able to connect from your UNIX server to your database port.

Code:
<?php
$fp = fsockopen('DATABASE_IP', 1433, $errno, $errstr, 5);
if (!$fp) {
    print "FAIL!!!";
} else {
    print "Able to connect!";
    fclose($fp);
}
?>
treica is offline  
Thanks
1 User
Old 01/17/2016, 21:16   #4
 
elite*gold: 0
Join Date: Apr 2014
Posts: 27
Received Thanks: 1
Anyone Knows how can i dowload UnixODBC Drivers?
Quesito is offline  
Old 01/17/2016, 21:52   #5
 
treica's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 525
Received Thanks: 805
Quote:
Originally Posted by Quesito View Post
Anyone Knows how can i dowload UnixODBC Drivers?
you go.
treica is offline  
Thanks
1 User
Old 01/17/2016, 22:07   #6
 
elite*gold: 0
Join Date: Apr 2014
Posts: 27
Received Thanks: 1
Quote:
Originally Posted by treica View Post
you go.

Thank you! now i Dowloaded it ( )
Thats it right?
Quesito is offline  
Old 01/17/2016, 23:20   #7
 
elite*gold: 0
Join Date: Oct 2015
Posts: 156
Received Thanks: 54
Quesito , what Treica said its true.
Sql broswer runnig , 1433 , installiing native driver .
Follow Castor turorial . Do step by step as him and will work .

Credits to treica
ShaiyaOld is offline  
Old 01/18/2016, 00:13   #8
 
elite*gold: 0
Join Date: Apr 2014
Posts: 27
Received Thanks: 1
I did it Exactly like him, step by Step :c

Quote:
Originally Posted by ShaiyaOld View Post
Quesito , what Treica said its true.
Sql broswer runnig , 1433 , installiing native driver .
Follow Castor turorial . Do step by step as him and will work .

Credits to treica
I did it exactly like him :c
Quesito is offline  
Old 01/18/2016, 09:19   #9
 
treica's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 525
Received Thanks: 805
Quote:
Originally Posted by Quesito
Huy buddy what im suppose to do with the UnixODBC Drivers Folder? can u give me a hand with that? thx.
You need to download the unixODBC-2.3.4.tar.gz file anywhere on the Linux machine you are trying to run the scripts from using SSH (root permissions required).

You can follow this steps (enter them one by one in the terminal).
Code:
cd /usr/local/lib/

sudo mkdir unixODBC

cd unixODBC

you must have wget installed
wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.4.tar.gz

gunzip unixODBC-2.3.4.tar.gz

tar xvf unixODBC-2.3.4.tar

cd unixODBC-2.3.4

./configure --disable-gui --disable-drivers --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE

make

sudo make install
Make sure your system can find the unixODBC library you just installed to /usr/local/lib by editing the file /etc/ld.so.conf.d/x86_64-linux-gnu.conf to append the path /usr/local/lib/

Then run

Code:
sudo ldconfig
And you done.
But if you don't have root access you have to request this driver from your hosting company administrator (ex: you run on a shared hosting).
treica is offline  
Reply


Similar Threads Similar Threads
Minecraft Hamachi Server Failed to connect to the server Connection refused connect
01/26/2012 - Minecraft - 1 Replies
Hallo zusammen, Wir haben einen Hamachi Server, den wir für den Multiplayer Mode von Minecraft verwenden. Bis jetzt ging alles einwandfrei, doch seit heute geht nix mehr. Der Ersteller vom Hamachi Server ist zwar online, doch wenn ich in den Server in Minecraft reingehe, kommt die Fehlermeldung: Failed to connect to the server Connection refused: connect Was geht da schief? Danke im Voraus. MfG kugelmanno
Connect DB connect connection refused HILFE!
02/27/2011 - Metin2 Private Server - 4 Replies
Ich habe mir einen server mit 2 Channels erstellt und beim starten kommt immer dieser fehler -.- in navicat hab ich versucht alle tabellen zu reparieren, aber bei information_shema kommt acces diened Bild: http://img825.imageshack.us/i/picturers.jpg/ Server startet und kann mich auch einloggen
proplem (connect: connect refused)
02/20/2010 - Metin2 Private Server - 5 Replies
hi ich habe ein porplem wenn ich mein server starte steht als erstes 8 felher meldungen udn dan ungefähr 11 mal connect: connect refused dan dauert es aufeinmal voll lange bis ich mich einlogge



All times are GMT +1. The time now is 19:06.


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.