This question already has an answer here:
First of all: I am a beginner, and have only basic knowledge about linux and servers. Also, this question is kind of vague, but i hope you can help. I would be very thankful for all kinds of feedback and guidance!
I'm running Ubuntu server 14.04 LTS on a very old PC. I want to be able to host a webpage. I am hosting the same page locally using my 2010 mac mini with MAMP, and that works very well.
I needed to update my mysql login details when i transferred the project to the PC, and also imported the database. The problem is that when i try to view the page, it gets stuck at the point where it needs to access the db to find out wether or not the client is logged on. I've tried
sudo /etc/init.d/mysql reload,
sudo /etc/init.d/mysql restart and more, but it never seems to make much of a difference...