SlackwareThis Forum is for the discussion of Slackware Linux.
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 using slackware 12.1. i intend to use mysql on slackware but i get this error message
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
i tried to see if the mysql deamon is running through the command chkconfig but looks like slackware does not identify this command. what is the equivalent command in slackware or how do i go about this problem?
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Code:
pidof mysqld
This will give you the process ID of the MySql daemon if it's running.
MySql won't work in Slackware without setting it up - have a look at the file /etc/rc.d/rc.mysqld for instructions - it's well commented and will show you how to set up starting databases and things.
i am using slackware 12.1. i intend to use mysql on slackware but i get this error message
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
i tried to see if the mysql deamon is running through the command chkconfig but looks like slackware does not identify this command. what is the equivalent command in slackware or how do i go about this problem?
thanks in advance
First, you have to set execute permissions to /etc/rc.d/rc.mysqld
Second, you have to run mysql_install_db --user=mysql
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
OK - I've just ran through the instructions on a clean VM of Slack 12.1 and it worked fine.
So -- you did restart after making your changes ? If so what messages about mysql did you see late on in the boot process ? Can you rerun pidof mysqld as root to check it's running ?
081018 22:09:01 mysqld started
081018 22:09:03 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
081018 22:09:03 mysqld ended
EDIT: Hey I had forgotten to restart mysqld, its working fine once mysqld was restarted..
I have a new question now, its not regarding mysql though, how do I set classpath for tomcat? I have downloaded apache-tomcat-6.0.18.tar.gz(which I used on my previous two distros also, mandriva 2009 and opensuse 11.0), now I have extracted to /home/user directory, I ran ./startup.sh and the server is indeed up and running. but I cant seem to find .bash_profile file to set classpath(like I did in my previous two installs).. there's only a .bash_history file. Also, there is no servlet api .jar file in /usr/share/java :-S
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.