Skip to main content

XAMPP: Couldn't start MySQL!

XAMPP: Couldn't start MySQL!

Trying to run mysql on ubuntu 10.10 and give this vauge error "XAMPP: Couldn't start MySQL!"

Try this

1. Open a terminal.
2. run this command sudo chown -hR root /opt/lampp
3. then run this sudo chmod -R 777 /opt/lampp
4. Now Restart XAMPP sudo /opt/lampp/lampp restart

U are all set.

And if u r getting the follwing warning after restarting
"Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored"

1.Open terminal
2.Migrate to /opt/lampp/etc
3.run the command sudo chmod 755 my.cnf

Comments

Anonymous said…
Thanks! This solution was the one that really worked for me ( the chmod my.cnf solution).

Been searching for a solution for a long time...
shaimaa said…
when i changed permission it solve the problem thanks alot
Nimuytan said…
Thank you! resolved!
Unknown said…
Thank you very much! :)
Once again you save me alot of work. :)
Good luck in the future and God bless you! :)
Unknown said…
still no working the mysql
Naveed said…
Thanks. Issue solved. Only my second day on Linux!
Sid said…
superb dude.. worked out
The Universe said…
Really appreciate it. Why doesn't XAMPP have the right permissions in the first place?
Naveed said…
@alex: that's what makes linux secure. file permission need to be granted by you, so that just any program cannot go on making changes to your system
Shiv said…
Thanks...it worked..!!
Anonymous said…
Thanks
Loxiney said…
Thank you! ;D
Parik said…
@thanks guys for all your wishes and comments :)
Sophia said…
Working cool. Thanks a lot. Now my blog running up. I really looking this
Şirazi said…
Thank you. Worked for me (y)

Popular posts from this blog

Difference between is_file and file_exists

If you want to know that the argument supplied is a file or not use is_file() file_exists() will take both file and directory as input and return true if they exists. So, unless you specifically want to check if the argument passed is a file use is_file otherwise use file_exists()