Re: Fedora Core 3 and MySql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



a a wrote:
Fresh install of FC3 and the first thing I did was subscribe to the
list, so when I caught this thread I was excited because I also need
to setup MySQL ... so I followed the instructions:


Check whether mysql is install just issue
rpm -qa|grep -i mysql


[root@spr1-derb3-3-0-cust203 sbin]# rpm -qa|grep -i mysql
perl-DBD-MySQL-2.9003-5
mod_auth_mysql-20030510-5
mysql-bench-3.23.58-14
qt-MySQL-3.3.3-8
php-mysql-4.3.10-3.2
mysql-3.23.58-14
mysql-server-3.23.58-14
MySQL-python-0.9.2-4
mysql-devel-3.23.58-14
libdbi-dbd-mysql-0.6.5-9

... that worked ok


to start mysql server (root)
/etc/init.d/mysql start


[root@spr1-derb3-3-0-cust203 init.d]# mysql start
ERROR 2002: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)

... oops .... what is happening plz?

You did not follow the instructions carefully enough.

Changing directory to /etc/init.d and running "mysql" is not the same as running "/etc/init.d/mysql" because the "current directory" is not in root's path. So you have run /usr/bin/mysql instead of /etc/init.d/mysql

If you want to run something in the current directory, be explicit about it:

# ./mysql start

This stops the search of directories in your path and runs the file from the current directory (".").

Paul.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux