I installed mysql and apachi form fedora14 installation dvd when I installed fedora.
no I want to run mysql interpreter for training mysql (I'm student). when I run mysql command I receive error:

$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I looked at mysql man pag but it wasn't useful!
please guide my throw this!
(I don't know any mysql db_name or username or passwords)

Recommended Answers

All 2 Replies

try mysql -uroot
bye :)

Your mysql server is not running. I don't know about fedora, but in Ubuntu you start it as root with
/etc/init.d/mysql start

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.