This forum is no longer active. Please post your questions to our new community site

Forums LAMPStack

Can't sign in to phpmyadmin, mysql not running?

Subscribe to Can't sign in to phpmyadmin, mysql not running? 6 post(s), 3 voice(s)

 
Avatar okkare 16 post(s)

I can’t sign in to phpmyadmin or MySQL Administrator using (using root and my password).

MySQL Administrator gives me this error:

Could not connect to host ‘localhost’.
MySQL Error Nr. 2002
Can’t connect to local MySQL server through socket ’/home/noah/lampstack/mysql/tmp/mysql.sock’ (2)

phpmyadmin does ask for the password, but doesn’t accept it and asks again for it repeatedly.

All my php pages appear blank at the moment, no errors.

I also tried:

sudo /home/noah/lampstack/mysql/scripts/ctl.sh mysql start

It returned not errors, but MySQL still does not appear in the process list and I still cannot sign in.

Also, last night when I had the server computer on, the internet would die for the whole network, even though System Monitor showed almost no network activity. I even did modprobe -r forcedeth (my network drivers) and the internet still didn’t work for my laptop. But as soon as I shut down the computer, bam, the other computers worked again.

Anyway, hopefully it doesn’t happen again.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

If you have installed the Stack as non-root user, you should not start the mysql database using “sudo”, only start as a regular user. Try the following:

$ cd <installationdir>
$ ./ctlscript.sh start

The phpMyAdmin user is “administrator” and the password is the same that you set during the installation. About your network problem, sorry but I have no idea about what might be the problem.

I hope it helps.

 
Avatar okkare 16 post(s)

Thanks a lot! Works now.

 
Avatar lukeme 1 post

I have the same problem!

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi lukeme, have you tried the solution that I posted? It runs ok for okkare.

Cheers.

Forums LAMPStack