Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am installing Mysql 4.0, apache 1.3, PHP 5.0 on fedora 1 all from source.
Started with the Mysql installation, then apache and PHP.PHP and apache works fine but I can't start mysql.
After the installation I started mysql and I got the error
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
I don't have a /tmp/mysql.sock, I tried to touch a file but I still have the same fault (111 instead of 2). Even my phpinfo() says that /tmp/mysql.sock should exists.
Does anyone have any idea? Greateful for any help.
/tmp/mysql.sock exists only when MySQL is actually running. Are you sure it started correctly (the init script usually works well out of the box)? Can you see mysqld in your ps output?
Sorry no help, error:
-bash: rcmysql: command not found
I found another log, when I try to start this:
/usr/local/bin/mysqld_safe &
I get this outprint:
Starting mysqld daemon with databases from /usr/local/var
040812 21:02:50 mysqld ended
and the log /usr/local/var/thor.err (thor is the name of my machine) says:
040812 21:02:50 mysqld started
InnoDB: unable to create ./innodb.status.2209: Permission denied
040812 21:02:50 Can't init databases
040812 21:02:50 Aborting
040812 21:02:50 InnoDB: Warning: shutting down a not properly started
InnoDB: or created database!
040812 21:02:50 /usr/local/libexec/mysqld: Shutdown Complete
oops, i think this isn't correct
--> /sbin/service mysqld start
it should be
--> /sbin/service mysql start
or something similiar (depending on distro version...).
When i make a suggestion, try it with a few deviations...
Isn't /sbin/service xxxxxx start/stop etc for programs that is installed with packages for the specific distribution. In my case rpm packages because I use fedora.
If I run:
/sbin/service --status-all
I get all the program that was installed at the installation, cron, sendmail, sshd etc. And none of the program that I installed from source.
Originally posted by krilen I get all the program that was installed at the installation, cron, sendmail, sshd etc. And none of the program that I installed from source.
That why. I proceeded on the assumption that you installed it as packet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.