How to Setup MySQL on any Android Device? Simple Steps

Published: 27 January 2022
on channel: Amartya Sinha
206
3

In this video, we will learn to set up MySQL on any Android device.

First of all, you will have to download Termux. (Avoid Play Store version). Use F-Droid to download it.
Link for F-Droid: https://f-droid.org/
After installing Termux, open it.

Update and upgrade your packages using the following commands:
pkg update
pkg upgrade

Now, install MariaDB using the given command:
pkg install mariadb

After the successful installation, we will start the MariaDB daemon for the current user. Use the following command:
mysqld_safe &

We have not provided any username in the above command parameter, so mysqld_safe will run for the current user. & will run this command in the background so that you can continue using your current terminal session.

The last thing you have to do is to open MySQL using the given command (it will run MySQL server for the current user on the local host, you can modify it according to your need):
mysql

Special Note:
Every time you will end the current Termux session, the MariaDB daemon will also shutdown. You will have to enable the daemon each time you initiate a new Texmux session. For that, the last two commands will help you i.e.
mysqld_safe &
mysql

If you do not want to startup the daemon everytime, then add the root user as parameter just like this.
mysqld_safe -u root &

Thanks for watching this video.


Watch video How to Setup MySQL on any Android Device? Simple Steps online, duration hours minute second in high quality that is uploaded to the channel Amartya Sinha 27 January 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 206 times and liked it 3 visitors.