- Download ไฟล์ ntunnel_mysqli.php
https://qrgo.page.link/6G6uX - โยน File ชื่อว่า ntunnel_mysqli.php เข้าไปใน Server ที่ wwwroot
- ทดสอบโดยการเข้าเว็บบราว์เซอร์ ด้วย : 192.168.xxx.xxx/ntunnel_mysqli.php แล้วลอง login ดูว่าผ่านไหม ?
![](https://sysadmin.psu.ac.th/wp-content/uploads/2022/03/13-1-1024x426.png)
5. ไปที่เมนู Connection เลือกเอาเลยว่าต้องการ Connection แบบไหน
![](https://sysadmin.psu.ac.th/wp-content/uploads/2020/02/c6.png)
6. ไปที่ General
– Connection Name = ตั้งชื่ออะไรก็ได้
– Host Name / IP Address = localhost
– Port = 3306
– User Name = root หรือ User ที่เรา Add ใน phpmyadmin
– Password = Password ที่เรา Add ใน phpmyadmin
![](https://sysadmin.psu.ac.th/wp-content/uploads/2020/02/c1-1.png)
7. ไปที่ HTTP
– ติ๊กเลือก Use HTTP Tunnel
– Tunnel URL : https://192.168.xxx.xxx/ntunnel_mysqli.php หรือ https://xxxx.com/ntunnel_mysqli.php
![](https://sysadmin.psu.ac.th/wp-content/uploads/2020/02/c2-1.png)
8. Test Connection
![](https://sysadmin.psu.ac.th/wp-content/uploads/2020/02/c3-4.png)
![](https://sysadmin.psu.ac.th/wp-content/uploads/2020/02/c4-2.png)
![](https://sysadmin.psu.ac.th/wp-content/uploads/2020/02/c5.png)
หาก Connect ไม่ผ่าน ให้เข้าไปแก้ไฟล์ my.cnf บรรทัดที่เขียนว่า skip-networking ให้ไป # ปิดใว้ แล้ว Restart Service ใหม่อีกครั้ง
หมายเหตุ : ผมได้ทดสอบกับ xampp-linux 7.3.12 บน Ubuntu 18.04
php 5.4 up มันจะใช้ mysqli เป็นส่วนใหญ่ เลยต้องใช้ ntunnel_mysqli