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 :
ReplyDeletehello I get an error which is Acces denied for user 'root' @ 'local host'
Type this command
Deletepkill mysql
mysqld_safe -u root&
Mysql -u.root
First type whoami and it will give ur username, then type mysql -u (thename u got) -p
DeleteAnd u shall get it
mysql -u root -p
ReplyDeleteAccess Denied for root
For access new version please you type mysql
ReplyDeleteWithout -u root -p, its work
ReplyDeleteAlso for me
ReplyDelete