Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

How to connect to SQL DB from Xtream Codes?

Status
Not open for further replies.

dix

Basic Member
Basic Member
Banned
Joined
Sep 24, 2019
Messages
53
Reaction score
169
Points
44
Location
Rusia
Hello friends, how are you?

I am trying to connect to the database of xtream codes, but i don't have success. I uploaded my code on wwwdir/examples but shows an error which i have programmed when the operation is not successful: Connection failed: No such file or directory

As server name: localhost
As database name: xtream_iptvpro

Does someone know why i can not connect to the database? Has another server name?
Looking forward to a response and thank you in advance.

PHP:
<?php
$servername   = "localhost";
$database = "xtream_iptvpro";
$username = "root";
$password = "password";

// Create connection
$conn = new mysqli($servername, $username, $password, $database);
// Check connection
if ($conn->connect_error) {
   die("Connection failed: " . $conn->connect_error);
}
  echo "Connected successfully";
?>
 
Last edited:

Piet

Extended Member
Ext. Member
VIP Member 12M
Joined
Sep 24, 2019
Messages
51
Reaction score
186
Points
44
Location
uxqosr3$
I do not see a port. Xtream often uses a different port than .the default MySQL port 3306.

Default Xtream uses 7999

check with sudo netstat -plunt
 

dix

Basic Member
Basic Member
Banned
Joined
Sep 24, 2019
Messages
53
Reaction score
169
Points
44
Location
Rusia
I do not see a port. Xtream often uses a different port than .the default MySQL port 3306.

Default Xtream uses 7999

check with sudo netstat -plunt
Thanks a lot, bro
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Status
Not open for further replies.
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock