I don’t know who needs mysql at runlevel 2 (just don’t tell me it is KDE!). But that doesn’t seem to work (anymore).
/etc/init.d/mysql (on 11.3 and 11.4)
### BEGIN INIT INFO
# Provides: mysql
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 2 3 5
# Short-Description: Start the MySQL database server
# Description: Start the MySQL database server
### END INIT INFO
I don’t know why network is not started at runlevel 2. Notice that network just configures the interfaces. It doesn’t start any network service. So there is nothing weird in having it running at 2 (as in 11.3, 11.1 as far as I can check around here).
I don’t know either why mysql is supposed to be started at runlevel 2 under openSUSE (not the case in Fedora, for example). But unless I missed the point, there is something wrong here, since you cannot enable mysql as it requires network at runlevel 2. The fix is either to add runlevel 2 to /etc/init.d/network or delete it from /etc/init.d/mysql.
please try again wrote:
> I don’t know either why mysql is supposed to be started at runlevel 2
> under openSUSE (not the case in Fedora, for example). But unless I
> missed the point, there is something wrong here, since you cannot enable
> mysql as it requires network at runlevel 2. The fix is either to add
> runlevel 2 to /etc/init.d/network or delete it from /etc/init.d/mysql.
> Is that a bug or what did I miss?
Why does mysql need network? I thought its default configuration had
networking disabled for security reasons. I remember having to
explicitly enable it in the mysql config. But admittedly that was
sometime in the dim and distant past
Correct. I installed pattern and packages through zypper from installation scripts I write for openSUSE - and other distros, then enabled/disabled services with insserv or chkconfig. No doubt that YaST would eat that bug. Although I have already seen YaST complaining in similar situations.
“A MySQL client on Unix can connect to the mysqld server in two
different ways: By using a Unix socket file to connect through a file in
the file system (default /tmp/mysql.sock), or by using TCP/IP, which
connects through a port number. A Unix socket file connection is faster
than TCP/IP, but can be used only when connecting to a server on the
same computer. A Unix socket file is used if you don’t specify a host
name or if you specify the special host name localhost.”
Carlos E. R. wrote:
> On 2011-03-17 12:51, Dave Howorth wrote:
>> Carlos E. R. wrote:
>>> As mysql needs network, it seems, it had to be removed from level 2.
>> Just not true.
> Depends whom you ask: