Topic: MySQL initial problem
Hi!
I've used to creating data bases through webadmins, but now I need to create db user and so on in shell (webconfig is not available). And I don't know much...
Here's what I get: server running ClarkConnect Community Edition 4.0 (rpm-based router/firewall) the system has its own separate mysql install which it uses for webconfig (and I don't want to touch this) so I installed mysql with apt-get,
rpm -qa mysql
says:
mysql-4.1.20-2.cc
It seems that all mysql stuff is installed properly.
But when I try to set the root password for MySQL (or use mysqladmin) it says:
$ mysqladmin -u root password 'somepassword'
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
/etc/my.cnf points to /var/lib/mysql/ but this dir is empty.
$ps -A | grep mysql
29997 ? 00:00:00 mysqld_safe
30065 ? 00:00:47 system-mysqld
Any ideas?