<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>35298</bug_id>
          
          <creation_ts>2018-08-28 12:57:48 +0300</creation_ts>
          <short_desc>service mysqld start fails with an error after installation</short_desc>
          <delta_ts>2018-09-14 01:36:11 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>MySQL-server</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Николай Костригин">nickel</assigned_to>
          <cc>aen</cc>
    
    <cc>alexey</cc>
    
    <cc>lav</cc>
    
    <cc>mike</cc>
    
    <cc>nickel</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173641</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-08-28 12:57:48 +0300</bug_when>
    <thetext>MySQL-server-5.7.22-alt1.S1.x86_64

Is there an error in the init-script?

-bash-4.3# service mysqld restart
Sending TERM signal to mysqld: Service mysqld is not running.                                                                                                                                                                                                        [PASSED]
Waiting for mysqld to actually shut down:                                                                                                                                                                                                                            [ DONE ]
mysqld: Character set &apos;--user=mysql&apos; is not a compiled character set and is not specified in the &apos;/usr/share/mysql/charsets/Index.xml&apos; file
2018-08-27T22:01:00.707973Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-08-27T22:01:00.709878Z 0 [ERROR] Aborting

Adjusting environment for mysqld:                                                                                                                                                                                                                                    [ DONE ]
Starting mysqld service: Initialization of mysqld failed: 0
                                                                                                                                                                                                                                                                     [FAILED]
-bash-4.3# service mysqld start
mysqld: Character set &apos;--user=mysql&apos; is not a compiled character set and is not specified in the &apos;/usr/share/mysql/charsets/Index.xml&apos; file
2018-08-27T22:01:26.556976Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-08-27T22:01:26.559157Z 0 [ERROR] Aborting

Adjusting environment for mysqld:                                                                                                                                                                                                                                    [ DONE ]
Starting mysqld service: Initialization of mysqld failed: 0
                                                                                                                                                                                                                                                                     [FAILED]
-bash-4.3# rpm -qf /etc/init.d/mysqld 
MySQL-server-5.7.22-alt1.S1.x86_64
-bash-4.3# rpm -V MySQL-server
S.5....T.  c /etc/my.cnf.d/server.cnf
.M.......    /var/lib/mysql/dev
-bash-4.3# rpm -q service
service-0.5.29-alt1.1.x86_64
-bash-4.3#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173642</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-08-28 13:17:24 +0300</bug_when>
    <thetext>Там ничего особенного:

# diff -du /etc/my.cnf.d/server.cnf{.*,}
--- /etc/my.cnf.d/server.cnf.MySQL-server-5.7.22-alt1.S1	2018-07-09 18:53:36.000000000 +0300
+++ /etc/my.cnf.d/server.cnf	2018-08-28 00:57:00.508009599 +0300
@@ -42,7 +42,8 @@
 # Note that using this option without enabling named pipes on Windows
 # (via the &quot;enable-named-pipe&quot; option) will render mysqld useless!
 # 
-skip-networking
+#skip-networking
+bind-address = 127.0.0.1
 
 # Disabling symbolic-links is recommended to prevent assorted security risks
 symbolic-links=0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173643</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-08-28 13:25:16 +0300</bug_when>
    <thetext>Это с SysV init, а не systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173812</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2018-09-01 12:09:04 +0300</bug_when>
    <thetext>Коля, посмотри пожалуйста по возвращении из отпуска.
У меня, правда на p8, осталась ещё конфигурация с SysVinit и mysqld - там работает всё как надо.

базу конвертировал ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173824</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-09-01 18:16:50 +0300</bug_when>
    <thetext>(In reply to comment #3)

&gt; базу конвертировал ?

Это была свежая установка без какой-либо бвзы.

Пытался выполнить https://www.altlinux.org/CVE-Manager#.D0.A0.D0.B0.D0.B7.D0.B2.D0.BE.D1.80.D0.B0.D1.87.D0.B8.D0.B2.D0.B0.D0.BD.D0.B8.D0.B5_.D0.B1.D0.B0.D0.B7.D1.8B_.D0.B4.D0.B0.D0.BD.D0.BD.D1.8B.D1.85_.D1.83.D1.8F.D0.B7.D0.B2.D0.B8.D0.BC.D0.BE.D1.81.D1.82.D0.B5.D0.B9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174019</commentid>
    <comment_count>5</comment_count>
    <who name="Николай Костригин">nickel</who>
    <bug_when>2018-09-10 18:26:54 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; (In reply to comment #3)
&gt; 
&gt; &gt; базу конвертировал ?
&gt; 
&gt; Это была свежая установка без какой-либо бвзы.

если установка свежая и базы еще нет, то быстро починить можно так (приводит к ПОЛНОЙ ПОТЕРЕ ДАННЫХ!!!):

rm -rf /var/lib/mysql/db/*
/usr/sbin/mysqld --initialize-insecure

далее как обычно

ошибка у меня воспроизводится на виртуалке с sysVinit, буду чинить</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174107</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2018-09-14 01:36:11 +0300</bug_when>
    <thetext>MySQL-5.7.23-alt2.S1 -&gt; sisyphus:

Thu Sep 13 2018 Nikolai Kostrigin &lt;nickel@altlinux&gt; 5.7.23-alt2.S1
- fix mysqld init script charset initialization sequence (closes: #35298)
- move tmpfiles to /run/mysqld (rider@)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>