forked from Voorivex/voorivex-weblog-owasp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.php
More file actions
17 lines (14 loc) · 596 Bytes
/
Copy pathdb.php
File metadata and controls
17 lines (14 loc) · 596 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
$db_servername = "localhost"; // Replace with your MySQL server hostname or IP address
$db_username = "voorivex"; // Replace with your MySQL username
$db_password = "mamad123"; // Replace with your MySQL password
$db_database = "voorivex_weblog"; // Replace with the name of your MySQL database
$backupPath = "/var/www/html/admin/backups/";
// Create a connection
$conn = new mysqli($db_servername, $db_username, $db_password, $db_database);
// Check the connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// echo "Connected successfully";
?>