Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck in error 2 with mysql using XAMPP

Tags:

I'm trying to make a webpage using XAMPP with apache and MySQL after that I will use WordPress for creating the web page. I have a problem creating the hostname and defining the user privileges at XAMPP. The error 2 is constantly appearing while I try to define the user privileges:

Can't read dir of 'C:\xampp\mysql\lib\plugin\' (errno: 2 "No such file or directory")

Can someone help and guide me for solving this problem

like image 701
Filip Mishkoski Avatar asked Feb 06 '17 08:02

Filip Mishkoski


People also ask

Why MySQL database is not working in XAMPP?

The good news is that, if this does happen, there are three methods you can use to troubleshoot the issue: Run XAMPP using administrator privileges. Restore your database backup. Change your MySQL port.


1 Answers

Just create the missing folders C:\xampp\mysql\lib\plugin\ and it should work.

I had the same issue when creating new mysql users in PHPMyAdmin after downloading the XAMP 5.6.30 package. Creating the two missing empty folders worked for me.

like image 179
Marc Avatar answered Sep 28 '22 23:09

Marc