Install and Configure MariaDB on Ubuntu

I. Installation In your terminal execute the following commands: sudo apt-get install software-properties-common sudo apt-key adv --recv-key...


I. Installation

In your terminal execute the following commands:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64] http://mirror.zol.co.zw/mariadb/repo/10.3/ubuntu bionic main'
sudo apt update
sudo apt -y install mariadb-server mariadb-client

You should be prompted to set your password.

Try myql -u root -p, if it does not work we need to configure the root user.

II. Configuration
Go back to your terminal and execute the following commands:

sudo mysql -u root
SELECT User,Host FROM mysql.user; # notice that root is assigned to localhost not %
DROP USER 'root'@'localhost';
CREATE USER 'root'@'%' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Exit mysql and connect without using sudo.

In case something goes wrong. Here's how you can uninstall MariaDB

apt-get remove --purge mariadb-server mariadb-client 
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mariadb-server mariadb-client
sudo apt-get --purge remove "mysql*"
sudo rm -rf /etc/mysql

Open /etc/apt/sources.list and remove all instances of MariaDB.

Then finally run sudo apt update.

COMMENTS

mas template
Name

amazon,1,angular,8,bigdata,2,business,1,course-spring,27,courses,6,database,4,docker,3,java,50,kafka,1,keycloak,4,microservices,5,mysql,1,neworking,1,nosql,2,php,1,pinned,2,react,3,server management,7,shared drive,1,spring,7,synology,1,troubleshooting,2,web,1,wordpress,1,
ltr
item
toztech: Install and Configure MariaDB on Ubuntu
Install and Configure MariaDB on Ubuntu
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-d0pQAvyqE3Y2CVjlRlx5UEuFG2yuqx0TKqhOSDkueub0CDrLpWf0VDIDiLg7ANNYHjnAG78B_NnEVgccnYeXf7jRdgswnHgwucZVGp9_L9fFXOfS1CKjmCrayX7n3cF8s6tlD9UxhQA/s320/mariadb.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-d0pQAvyqE3Y2CVjlRlx5UEuFG2yuqx0TKqhOSDkueub0CDrLpWf0VDIDiLg7ANNYHjnAG78B_NnEVgccnYeXf7jRdgswnHgwucZVGp9_L9fFXOfS1CKjmCrayX7n3cF8s6tlD9UxhQA/s72-c/mariadb.png
toztech
https://toztech.blogspot.com/2019/03/install-and-configure-mariadb-on-ubuntu.html
https://toztech.blogspot.com/
https://toztech.blogspot.com/
https://toztech.blogspot.com/2019/03/install-and-configure-mariadb-on-ubuntu.html
true
2554149350007112447
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content