• Top Certifications
  • Become an Instructor
  • Courses
  • Free Videos Tutorials
Linux

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

Chandan Kumar March 17, 2021 comments off
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/

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
  • Author
  • Recent Posts
Chandan Kumar
Follow Me:
Chandan Kumar
Senior Software Engineer at Cotocus
Email - contact@DevOpsSchool.com

Be a Full Stack Developer and eager to learn new Technology.
Knowledge: CSS, Bootstrap, Javascript, PHP, WordPress, Joomla, Moodle, Laravel, AJAX, Jquery, Java, Dart, Flutter, Photoshop, CorelDraw, Pagemaker
& Office Package
Chandan Kumar
Follow Me:
Latest posts by Chandan Kumar (see all)
  • Top 10 DevOps Blogs and Websites To Follow in 2023 - December 13, 2022
  • How To Set Up Apache Virtual Hosts on Ubuntu 20.04.2 LTS - October 28, 2021
  • How to Fix ” Vue packages version mismatch:” error in Laravel 5.5 - April 15, 2021
lampp login-issue mysql Permission denied Ubuntu xampp

How to contact us?

Need Assistance!!!

Feel Free To Contact Us
1800 889 7977
(India Toll Free)

+91 7004 215 841
(Worldwide)

Email us
Contact@DevOpsSchool.com

Archives

Categories

  • Free Video Tutorials
  • DevOps School
  • Best DevOps
  • scmGalaxy
  • Artificial Intelligence
  • DataOps
  • AIOps
  • GuruKul Galaxy
  • DevOps Consulting
  • DevOps Freelancers
  • DevOps Trainer
  • Free Ebooks
  • School for Debugger
  • Holiday Landmark
  • Surgery Planet
  • My Hospital Now
  • My Medic Plus
  • ProfessNow
  • Cotocus
  • Stocks Mantra
  • I Reviewed

Number of posts: 5,984
Number of users: 36

Community

Useful Reference

  • DevOps Community
  • https://www.devopsschool.com/blog/sitemap/
  • DevOps Trainer
  • DevOps Consulting
  • DevOps News & Events

Links

  • About Us
  • Support
  • Calender
  • Comparison
  • Agenda
© 2023 DevOpsSchool.com - Theme by DevOpsschool