Step:1 sudo apt update sudo apt -y upgrade sudo apt autoremove Step:2 Install python 3.7 sudo apt install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.7 Step:3 Install Dependency sudo apt-get install -y python3-testresources Step: 4 Install Python pip Tool wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py sudo pip3 install --upgrade pip3 setuptools [ Alternative - Execute if the command above fails. 1) curl https://bootstrap.pypa.io/get-pip.py | python3 2) pip install --upgrade setuptools ] sudo pip3 install ansible Step:5 Install curl and yarn sudo apt -y install curl curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt -y update && sudo apt -y install yarn Step: 6 Install MariaDB 10.4 sudo apt-get install software-properties-common sudo apt-key adv --recv-keys ...
If Installation on new machine
- 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,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main'
- sudo apt-get install mariadb-server-10.2 mariadb-client-10.2 -y
- sudo service mysql status
Check if you are getting error loading MySQL
- sudo mysqld --tc-heuristic-recover=ROLLBACK
- sudo service mysql restart
- sudo mysqld_safe --tc-heuristic-recover=COMMIT
- mysql -uroot -proot
- if you are able to login to mariadb then your database is working
If Installing on the machine with previously installed MySQL
- sudo apt-get remove --purge mysql*
- sudo apt-get remove --purge mysql
- sudo apt-get remove --purge mariadb
- sudo apt-get remove --purge mariadb*
- sudo apt-get --purge remove mariadb-server
- sudo apt-get --purge remove python-software-properties
- sudo apt-get autoremove
- sudo apt-get autoclean
Comments
Post a Comment