In this article, we will see how to install MySQL on Ubuntu 22.04 LTS step by step.
Tag: Linux
How to check MySQL is installed or not in Ubuntu
In this article, we will check MySQL is installed or not in Ubuntu. We will show the commands to find MySQL is installed on Ubuntu or not Continue reading How to check MySQL is installed or not in Ubuntu
How to install MySQL on Ubuntu
In this article, we will see how to install MySQL on Ubuntu.
On Ubuntu 20.04(or later version), we can install MySQL using the APT package repository. Present version of MySQL available in the default Ubuntu repository is version 8.0.27.
Step 1: How to install MySQL on Ubuntu
How to uninstall MySQL from Ubuntu
In this article, we will see how to uninstall MySQL from Ubuntu.
Important Note: I suggest you to take backup of your important MySQL databases. Once we uninstall, all your MySQL data will be lost.
1. Stop MySQL server using below command.
sudo systemctl stop mysql
How to check MySQL Server startup time and uptime
In this article, we will see how to check MySQL Server startup time and uptime.
Uptime is the time between current and MySQL start time.
Startup time is time exact time(date with seconds) of MySQL server started.
1. Check the MySQL Server Startup time:
We can get it from MySQL shell, Linux shell and MySQL workbench
Continue reading How to check MySQL Server startup time and uptime
How to install MySQL 8 on Kali Linux
In this article, we will see how to install MySQL 8 on Kali Linux.
We’ll use the available MySQL APT repository to install MySQL 8.0 on Kali Linux. Ensure this repository is added to our system by running the commands below.
sudo apt update sudo apt install -y wget wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
In this article, we will see the solution for below error.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Reasons:
1. MySQL is not started.
2. MySQL not installed on your machine.
Solution:
1. Lets verify the status of mysql server whether it is started or not.
Continue reading ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
How to Install MySQL 8 on CentOS
In this article, we will see How to Install MySQL 8 on CentOS 7.
MySQL 8 Installation on CentOS step by step:
Following are the commands used to install MySQL on CentOS:
1. wget https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
2. yum install mysql80-community-release-el7-3.noarch.rpm
3. yum repolist enabled | grep “mysql.*-community.*”
Continue reading How to Install MySQL 8 on CentOS