Answers for "mysql_connect port"

PHP
10

mysql port

mysql -u root
mysql> SHOW GLOBAL VARIABLES LIKE 'PORT';
# Default port is 3306 for MySQL
Posted by: Guest on May-15-2021
1

$conn php

<?php
    $user = "username";
    $pass = "password";
    $host = "host";
    $dbdb = "database";
    
$conn = new mysqli($host, $user, $pass, $dbdb);
   if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
} 
?>
Posted by: Guest on December-23-2020

Code answers related to "mysql_connect port"

Browse Popular Code Answers by Language