Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

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
173
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:
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
 
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 @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Status
Not open for further replies.
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top