Quote:
Originally posted by krilen
Found the problem this morning, maybe I was to tiered (or stupied) last night.
I forgot to change /usr/local/var to mysql owner and group.
/Krilen
|
hi krilen, i met exactly same problem, can u explain more detail on how u solve it?
how to change the /usr/local/var to mysql owner and group
error return
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
i did read MySQL manual it says
"Once you've installed MySQL (from either a binary or source distribution), you need to initialise the grant tables, start the server, and make sure that the server works okay."
and when i execute mysql_install_db in my /usr/bin/
it returns error
Didn't find /usr/libexec/mysqld
You should do a 'make install' before executing this script
well then i try to find my mysqld. i can't find it,
the things is like
[root@pan bin]# whereis mysqld
mysqld: /usr/share/man/man1/mysqld.1.gz
then i did
[root@pan bin]# mysql_config
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
--cflags [-I'/usr/include']
--libs [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm] --socket [/var/lib/mysql/mysql.sock]
--port [3306]
--version [3.23.58]
i did mysqld_safe and safe_mysqld and mysqld and mysqladmin, all return error as "command not found"
i fresh installed fedora core 1, choose mysql installed as defualt,
anyone can help me on this.
thank you very much