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 searched the forums and none of the errors seemed to be just like so I am making htis new thread.
bash-3.00$ mysql
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
now ive seen this error in alot of places on this forum, but I am not sure if my mysql is even properly setup because all i have done with it is install the package that the cd installed for me.
I looked in var/run/mysql/ and the directory is empty so I am guessing I missed a part I am supposed to do but after asking people and googling I still cant find that step. If this matters .. I get
bash-3.00$ ./mysqld
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
050306 16:57:32 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
050306 16:57:33 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
050306 16:57:33 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
050306 16:57:34 InnoDB: Started
050306 16:57:34 ./mysqld: Can't find file: './mysql/host.frm' (errno: 13)
050306 16:57:34 Fatal error: Can't open privilege tables: Can't find file: './my sql/host.frm' (errno: 13)
050306 16:57:34 Aborting
what you're doing there is telling mysql to just run it the directory you're currently in, and it's tryign to create default indexes and things, because that's the wrong place to run it from. on installation it should have put a service script into /etc/init.d/mysql , you need to pass the "start" argument to that for it to start up correctly.
it'll be there somewhere, you couldn't run without it. afaik, some distro's put it at /etc/rc.d/init.d. you can always do a "locate init.d" to find it.
From what I'm seeing that's not Slackware official package of MySQL. Try getting it from some mirror because the instructions they gave you apply to it, not to a custom installation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.