필자는 온라인 연구를 많이했지만 필자는 이것에 대해 많이 알지 못했다. 나는 이해하지 못한다. 하지만 mysql 네이티브 드라이버가 MAMP 스택과 함께 제공되지 않는 것 같습니다. 예를 들어, mysqli get_result 메소드는 기본적으로 작동하지 않는다. 나는 이것이 설치 과정에서 오류라고 생각했지만 깨끗한 재설치 후에도이 방법은 여전히 작동하지 않으므로 드라이버가 설치되어 있지 않은 것 같습니다. 많은 사람들이 get_result를 사용하여 로컬 테스트를해야하기 때문에 주제에 대한 자료가 거의 없다는 것이 이상하게 보입니다.
그래서이 문제가 발생합니다 : 어떻게 mysqlnd 드라이버를 설치할 수 있습니까? :-)MAMP와 함께 mysqlnd 드라이버를 설치하는 방법은 무엇입니까?
php.ini 파일 :
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
; Extensions
;extension=apcu.so
extension=imap.so
extension=yaz.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so
;extension=imagick.so
;extension=tidy.so
;extension=oauth.so
확인 당신은'php.ini'는 확장 를 활성화되어 있습니까? – vaso123
hmm 사실 확장 기능이 활성화되어 있다면 php.ini 파일에서 어디서 볼 수 있는지 모르겠다. –
localhost에서 스크립트를 만들고 다음 줄을 추가한다 :' php php_info();'php .ini' 경로. 그런 다음 php.ini 파일을 열고'extensions' 섹션을 찾으십시오. mysqli 확장 전에';'char가 있는지 확인하십시오. 그렇다면 제거하고 아파치를 다시 시작하십시오. – vaso123