Search code examples
mysqlhosttermux

How to connect to SQL server in termux?


I am trying to use python and SQL in termux , I have mariadb in termux , i am able to connect to it remotely from my phone(via python) with host="localhost" but i need to host SQL in termux as usual but connect to SQL from another phone/computer , any ideas ?

Things i have tried:

Created user with host same as ip Tried with host same as ip Created a user with host "." Expected: Able to connect another phone via internet or LAN to sql


Solution

  • Using ngrok , ngrok tcp 3306 , i got a link with port which can be used in any device with internet to connect to my mobile , from anywhere!