LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-28-2012, 10:42 AM   #1
estars100
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy Snort with MySQL download issues


I've been trying to download Snort w/a mysql database on my Ubuntu 11.10 server,
but keep running into issues. (I'm a relatively new Linux user, btw...)

This server previously had Snort w/mysql on it, but I wanted to update it.
However, the upgrades weren't working so I deleted everything that had to do with snort or mysql.

Since then I have done:
$ apt-get install snort
$ apt-get install snort-mysql
$ apt-get install snort-rules-default
$ apt-get install mysql-server
$ apt-get install mysql-client-core-5.1 mysql-cluster-client-5.1

when I try to run $ mysql - I get:

Error 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld.sock' (2)

Here's what I've tried and the resulting messages:

$ /etc/init.d/mysqld start
-bash: /etc/init.d/mysqld: No such file or directory
$ service mysqld start
mysqld: unrecognized service

any suggestions?

Last edited by estars100; 06-28-2012 at 11:14 AM.
 
Old 06-29-2012, 02:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
did you actually look in /etc/init.d to see what the service is called? Google says it's just called "mysql" not "mysqld"
 
Old 06-29-2012, 11:45 AM   #3
estars100
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
You're right, in /etc/init.d there's no mysqld

So I tried to start mysql and got the same Error 2002 as above. er edit: the Error should have the socket as /var/run/mysqld/mysqld.sock/

and I just checked /var/run/mysqld and it's empty...?

(edited for spell check >.<)

Last edited by estars100; 06-29-2012 at 11:47 AM.
 
Old 07-02-2012, 12:31 PM   #4
estars100
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I realized that I didn't actually have snort-mysql installed (I must've uninstalled it at some point...)
But this is what happens when I try to install it:

emoran@spot:/usr/share/doc$ sudo apt-get install snort-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
snort-mysql is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-3.0.0-21-generic-pae linux-headers-3.0.0-21
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mysql-server-5.1 (5.1.63-0ubuntu0.11.10.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.1; however:
Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
mysql-server-5.1
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

*note, I know it says that there's nothing to be installed, b/c right before this I used the same command to install it but ran into other issues with setting up mysql-server-5.1, since I had mysqld_safe and mysqld running...but I fixed that!

Any ideas?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
snort + mysql+ acid liang3391 Linux - Software 1 06-24-2009 01:59 PM
snort and mysql lord-fu *BSD 1 11-20-2005 09:11 PM
snort and mysql ilnli Linux - General 1 03-28-2005 02:20 PM
mysql snort acid HELP wylie1001 Linux - Software 0 01-01-2005 06:51 PM
Snort and Logging to Mysql. FragInHell Linux - Security 3 09-18-2004 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration