구름 IDE PHP 컨테이너에서의 mysqli 함수 사용
Uncaught Error: Call to undefined function mysqli_connect() in
/workspace/container/index.php:
위와 같은 에러가 나는 경우는 php7.3-mysql 설치를 해주면 해결 된다.
방법
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.3-
만약 add-apt-repository 할 때 인증키 에러가 난다면 GPG Key 등록을 해 주어야 하며
방법은 다음 링크 참조
Ubuntu GPG Key 등록하기 : https://sosotip.blogspot.com/2020/04/goorm-ide-apt-get.html
댓글
댓글 쓰기