Originally posted by chinaundead
I know how to add user or something in mysql. I mean in my linux user account, I can not get access to mysql
[wangjunwei@so-19661-x0 wangjunwei]$ mysql -h localhost -u root -p
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
any help, thank you!
Are you trying to connect remotely or locally? If your root, try just typing mysql
and then you can update/edit your user(s) information, etc. Is mysql even running? Have you tried:
mysql -h hostname -u(user) -p(password)
Notice the no spaces for -u and -p !
More details please, your first post came off as if you could connect to it with what you posted, but couldn't connect using a regular user, etc.