computerish
23rd June 2008, 22:42
I am trying to follow the Ubuntu LAMP for Newbies tutorial (http://www.howtoforge.com/ubuntu_lamp_for_newbies). I got to the step where you enter this command:
sudo apt-get install mysql-server
It asked me to set a password, so I did. That was my mistake. (I do know what the password was.) When I then entered the next command:
mysql -u root
I got the error that the password was wrong. I did not know how to enter my password into that command, so I went into Synaptic and marked mysql-server for complete removal then went back to the command line and reinstalled mysql-server.
That worked, but it did not ask me for a password. Now when I try mysql -u root, I get this:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Now what do I do?
Thanks so much!
sudo apt-get install mysql-server
It asked me to set a password, so I did. That was my mistake. (I do know what the password was.) When I then entered the next command:
mysql -u root
I got the error that the password was wrong. I did not know how to enter my password into that command, so I went into Synaptic and marked mysql-server for complete removal then went back to the command line and reinstalled mysql-server.
That worked, but it did not ask me for a password. Now when I try mysql -u root, I get this:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Now what do I do?
Thanks so much!