How to install mysql server in android phone.

in #mysql5 years ago

First install an application named 'Termux' from playstore.

Screenshot_2019-09-18-10-31-14-690_com.android.vending.png

Open it and wait till installation is done then follow the steps.

1] Type apt update and press enter.
2] After the script is over type ** apt upgrade** and press enter.
(in both steps above and beyond press y wherever asked for.
3] Type pkg install mariadb and press enter. Allow some time to install it.
4] After successful installation follow these steps to start sql server
i) type mysqld_safe - u root & press enter
ii) type mysql press enter .
Mysql server is started successfully

if you get error in step 3] Then type cd ../usr/etc and press enter and type mkdir my.cnf.d and press enter and try again from step 3]

Follow step 4] every time you open termux to run sql server.

Screenshot_2019-09-18-10-56-08-554_com.termux.png

Screenshot_2019-09-18-10-56-22-807_com.termux.png

Screenshot_2019-09-18-10-56-41-523_com.termux.png

Click here to see video on these steps.

Sort:  

Congratulations @uzairk! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made your First Vote
You published your First Post
You made your First Comment
You got a First Vote
You distributed more than 10 upvotes. Your next target is to reach 50 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

It's showing can't connect to local mysql server through socket

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.034
BTC 66274.97
ETH 3175.04
USDT 1.00
SBD 4.06