Jump to content


Photo

Can't get MySQL running


  • Please log in to reply
1 reply to this topic

#1 snorky

snorky
  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts
  • LocationPacific Northwet - US of A

Posted 30 September 2003 - 10:25 PM

Using a Sun Cobalt Raq3 running a modified Red Hat 6.2., kernel-2.2.16C32_III-2

I just installed MySQL. I had to reboot the web server (not related to MySQL) and the daemon won\'t start.
1. How to I make the daemon start automatically when the server boots up?
2. what is going wrong when I try to start it manually? Here\'s what the error log says:
030930 14:47:18 mysqld started
030930 14:47:18 Can\'t start server : Bind on unix socket: Permission denied
030930 14:47:18 Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
030930 14:47:18 Aborting
030930 14:47:18 /usr/sbin/mysqld: Shutdown Complete
030930 14:47:18 mysqld ended
I\'m logged in as (Linux) root. If I try to start the daemon logged on as (Linux user) admin, then nothing is wriiten to the log; all errors appear on screen and say \"permission denied\"
-- snorky
[br]The paradigm is shifting, and I\'m stuck in 2nd gear.

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 01 October 2003 - 12:31 AM

1. /etc/rc.d/rc#.d

# being the run level of the machine--which, if you are unsure, can be found in /etc/inittab. you should find the number within the first uncommented line. in the /etc/rc.d/rc#.d directory you place a symbolic link to the mysqld script in the /etc/init.d directory via ln -s source target. if redhat was prepacked with mysql you probably already have a file there and it is starting that version, which is your problem. try to see if it is already running by:

ps -aef | grep mysql
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users