"XAMPP: Couldn't start MySQL" on Ubuntu 64bit
8,086
After being googling for days i found this and it works great!
What i did was
sudo chmod 755 /opt/lampp/etc/my.cnf
sudo chmod 777 /opt/lampp/var/mysql -R
sudo /opt/lampp/lampp restart
and now it works
Related videos on Youtube
Author by
Jeggy
Updated on September 18, 2022Comments
-
Jeggy over 1 year
I installed LAMPP with these instructions, but phpmadmin didn't work so i tried to uninstall and then install it again and it still doesn't work. When I'm trying to turn it on i get these errors.
jeggy@jeggy-12:~/Niðurtøkur$ sudo /opt/lampp/lampp start Starting XAMPP for Linux 1.8.1... XAMPP: Another web server daemon is already running. XAMPP: Starting MySQL... XAMPP: Couldn't start MySQL! XAMPP: Another FTP daemon is already running. XAMPP for Linux started. jeggy@jeggy-12:~/Niðurtøkur$
I have tried
sudo /etc/init.d/apache2 stop
and
sudo /usr/sbin/apache2ctl stop
And none of them work
When i go to localhost/phpmyadmin/ i get this error:
EDIT: Now i get this error
jeggy@jeggy-12:~/Niðurtøkur/nspire$ sudo /opt/lampp/lampp start Starting XAMPP for Linux 1.8.1... XAMPP: Starting Apache... XAMPP: Starting MySQL... XAMPP: Couldn't start MySQL! XAMPP: Starting ProFTPD... XAMPP for Linux started.
-
Rinzwind over 11 years"XAMPP: Another web server daemon is already running." Is there another web server running? If so ... kill it.
-
Jeggy over 11 yearsi know that, but i don't know how to kill it. What i think it can be is that it was on while i deleted it and now when i installed it again it says another already is on
-
Rinzwind over 11 years
ps -ef|grep {whatyouwanttofind}
, find the PID, and do akill -9 {pid}
. {whatyouwanttofind} is something like mysql or xampp. -
David Foerster about 9 yearsUghh, please don't use XAMPP on Linux. We have a perfectly fine LAMPP stack in the package repositories: trivial, single-command installation, much better system integration (incl. better file access permission management), and completely automated (security) updates.
-
-
David Foerster about 9 yearsMaking a whole directory structure writeable and executable to everyone is a terrible idea.