title: Connecting to MariaDB Server on Termux Android
body: <p>I'm working on launching a NodeJS project directly on a local database on an Android Device and for this I use Termux and MariaDB Server.</p>
  <p>It perfectly works after using the commands</p>
  <pre><code>mysqld &amp; 
  </code></pre>
  <p>and</p>
  <pre><code>node mynodefile.js
  </code></pre>
  <p>on Termux. But I would like to avoid the &quot;mysqld &amp;&quot; command and launch the MariaDB Server in another way. So I downloaded the MariaDB Server App for Android. But even if I launch the server with it, Termux doesn't even detect the new process and I can't access to mysql. It gives me the following error:</p>
  <pre><code>$ mysql -u root -p -h127.0.0.1
  ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/data/data/com.termux/files/usr/var/lib/mysqld.sock' (111)
  </code></pre>
  <p>It seems that the server is still off... How can I resolve my problem?</p>