Azure portal free trail mysql flexible server connection using PHP. Donot get error. It is just aborting

Vijay Rastogi 0 Reputation points
2023-09-21T14:58:31.92+00:00
rameters	
            
	        $dbhost = "euphoria-pos-01-server.mysql.database.azure.com";
			$db_name = "euphoria-pos-01-database";
            $username = "tifbkjssaj";
            $password = "AO0TU3SU7U876762$";
			$port  = "3306" ;
			$mysqli_flag = "MYSQLI_CLIENT_SSL" ;

			$conn = mysqli_init(); 			
            if (!$conn){
 				echo "Error in mysqli_init()" ; 			} 
 //			mysqli_ssl_set($conn,NULL,NULL, "DigiCertGlobalRootG2.crt.pem", NULL, NULL);     mysqli_real_connect($conn, $dbhost, $username, $password, $db_name, 3306); 			if (mysqli_connect_errno($conn)) { 			
		die('Failed to connect to MySQL: '.mysqli_connect_error()); 
			} 			printf("Connection Established.\n"); 
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
802 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.