Install mariadb/MySQL database server in termux

What is MariaDB ?



MariaDB is a community-developed, commercially supported fork of the MySQLrelational database management system, intended to remain free and open-source software under the GNU GPL. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation.

How to install in Termux ?

Open termux app and type following commands :

  • pkg update
  • pkg install mariadb

Now mariadb is installed successfully.
Setup MariaDB server in Termux use following command :

  • mysql_install_db


Start MariaDB server :

To start MariaDB server type :
  • mysqld
       OR
  • mysqld_safe -u root &

for access database :

To access MariaDB Database server type :
  • mysql -u root -p
it will ask for password your by default password is nothing hit enter you will login into the database server.

Stop MariaDB server :

To stop MariaDB server type :

  • pkill mysql
Now MariaDB server is stoped.

if you all  get an error which is Acces denied for user 'root' @ 'local host'

Type this command

pkill mysql
mysqld_safe -u root&
Mysql -u.root

NOTE: This article is only for an Educational purpose. Any actions or activities related to the material contained on this Website is solely your responsibility.  Misuse of the information in this website can result in criminal charges brought against the persons in question. The Authors and Hackers Dormitory.will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this website to break the law.

No comments:

Thanks for coming on my blog hackersdormitory hope you like it

INSTAGRAM FEED

@_mr_rudr_