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
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
pkill mysql
mysqld_safe -u root&
Mysql -u.root
No comments:
Post a Comment