MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

I am facing a MySQL error when I want to login into a database in Ubuntu 20.04.2 LTS

PhpMyAdmin login showing Cannot log in to the MySQL server and mysqli real_connect connection refused
Mysqli login issue

I am facing above issue from two days so I searched a lot for this. but every time I failed, I started checking from another ubuntu machines, I find that, there is a permission issue in my machine so i decide to run some commands which you can find below:

First of all, you can’t give chmod 777 to htdocs folder so you can follow below steps to find the resolution :

Step 1 : Give the permission to your var folder location under lampp folder

sudo chmod 777 /opt/lampp/var/

Step 2 : Now give access to mysql folder

sudo chown -R mysql:mysql /opt/lampp/var/mysql/Code language: JavaScript (javascript)

Step 3 : At last restart Xampp Server

lampp/lampp restart

Hey geeks above resolution solved my xampp issue and if you are also stuck on these problems following my steps. Please find another solution given under the resources section. and feel free to comment if you have any other resolutions.

Resources :

  1. Click Here
  2. Click Here

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in provides the perfect two-wheeler for every occasion—daily commuting, weekend escapes, tourist exploration, or test-riding your dream bike. Simplify your mobility with us!

Related Posts

Managing MariaDB Root Password and Connection Behavior in XAMPP (Ubuntu)

☁️ Introduction When working with MariaDB/MySQL inside XAMPP on Ubuntu, many developers face confusing issues related to root password behavior, localhost vs 127.0.0.1 access, and authentication plugins.This…

Read More

How to install and Configure XAMPP on Ubuntu?

Steps to install XAMPP on Ubuntu Server: 1. Login to Ubuntu machine using any ssh client (like putty) or it’s great if you have a direct access…

Read More

Ubuntu or Linux Error: Unable to access XAMPP MySQL from /opt/lampp/bin/mysql

Here’s the complete article on the solution with baby steps:How to link php from XAMPP installation to use php command from user or any other directory in…

Read More

How to link MySQL from XAMPP (/opt/lampp/bin) to use mysql command from any directory in Ubuntu or Linux

Assumption: I assume that you have already installed XAMPP in your Ubuntu OR Linux machine.If not, then you may follow this link to do so: https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/ and https://www.devopsschool.com/blog/how-to-link-php-from-xampp-installation-to-use-php-command-from-user-or-any-other-directory-in-ubuntu-or-linux/…

Read More

How to link php from XAMPP installation to use php command from user or any other directory in Ubuntu or Linux

Assumption:I assume that you have already installed XAMPP in your Ubuntu OR Linux machine.If not, then you may follow this link to do so: https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/ How I…

Read More

Xampp : Starting Apache …fail : Ubuntu Server Error

i installed xampp in my ubuntu server in virtual box and when i am running below command. then showing Starting Apache …fail. sudo /opt/lampp/lampp start Error :…

Read More