![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FWZqCT%2FbtrEIpfv0XH%2FY3Hp2PFT8Kw9hQViPn9MSk%2Fimg.jpg)
·PHP
mysqli로 MySQL 서버에 연결 $host = 'localhost'; // host 주소 $user = 'user'; // host user $password = 'pass'; // host password $database = 'testDB'; // database 이름 $con = mysqli_connect($host, $user, $password, $database); // 연결 실패시 if(!$con) { die('연결 실패'.mysqli_error($con)); } PHP: mysqli::__construct - Manual mysqli can succeed in surprising ways, depending on the privileges granted to the user. For ..