<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Mysql server do not start : ambari-server start in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186743#M67936</link>
    <description>&lt;P&gt;We have been working our sandbox cluster and we are not able to start mysql server getting the below error:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;g4t7474_[root@g4t7474 tools]# service mysqld status
mysqld is stopped&lt;/P&gt;&lt;P&gt;g4t7474_[root@g4t7474 tools]# service mysqld start
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Service stopped suddenly and when we tried to start it again it failed several times.&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;Please find attached two of the tested "my.cnf" files and the logs.&lt;/P&gt;&lt;P&gt;my.cnf -&amp;gt; this is the original that was working&lt;/P&gt;&lt;P&gt;my.cnf.back -&amp;gt; tried to replicate a working one but didnt succeed.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/38616-mycnfback.txt"&gt;mycnfback.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/38617-mycnf.txt"&gt;mycnf.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/38618-varlogmysqldlog.txt"&gt;varlogmysqldlog.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;Below the mysql.sock "location" &lt;/P&gt;&lt;P&gt;g4t7474_[root@g4t7474 ~]# locate mysql.sock
/var/lib/mysql/mysql.sock
g4t7474_[root@g4t7474 ~]# ls -ld /var/lib/mysql/mysql.sock
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory
g4t7474_[root@g4t7474 ~]#&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 03:53:41 GMT</pubDate>
    <dc:creator>jesus-angel_mon</dc:creator>
    <dc:date>2017-09-13T03:53:41Z</dc:date>
    <item>
      <title>Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186743#M67936</link>
      <description>&lt;P&gt;We have been working our sandbox cluster and we are not able to start mysql server getting the below error:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;g4t7474_[root@g4t7474 tools]# service mysqld status
mysqld is stopped&lt;/P&gt;&lt;P&gt;g4t7474_[root@g4t7474 tools]# service mysqld start
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Service stopped suddenly and when we tried to start it again it failed several times.&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;Please find attached two of the tested "my.cnf" files and the logs.&lt;/P&gt;&lt;P&gt;my.cnf -&amp;gt; this is the original that was working&lt;/P&gt;&lt;P&gt;my.cnf.back -&amp;gt; tried to replicate a working one but didnt succeed.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/38616-mycnfback.txt"&gt;mycnfback.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/38617-mycnf.txt"&gt;mycnf.txt&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/38618-varlogmysqldlog.txt"&gt;varlogmysqldlog.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;Below the mysql.sock "location" &lt;/P&gt;&lt;P&gt;g4t7474_[root@g4t7474 ~]# locate mysql.sock
/var/lib/mysql/mysql.sock
g4t7474_[root@g4t7474 ~]# ls -ld /var/lib/mysql/mysql.sock
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory
g4t7474_[root@g4t7474 ~]#&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 03:53:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186743#M67936</guid>
      <dc:creator>jesus-angel_mon</dc:creator>
      <dc:date>2017-09-13T03:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186744#M67937</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/25161/jesus-angelmondragon-mejia.html"&gt;Angel Mondragon&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You can't connect start the database, because your socket file is a bit wrong. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you have &lt;STRONG&gt;/var/mysql/mysql.sock&lt;/STRONG&gt; but no &lt;STRONG&gt;/tmp/mysql.sock&lt;/STRONG&gt; then: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;em&amp;gt;# cd /tmp 
# ln -s /var/mysql/mysql.sock mysql.sock &amp;lt;/em&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Use the previous working config&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Then try restarting the Mysql db, please let me know if that helped&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 04:17:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186744#M67937</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-13T04:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186745#M67938</link>
      <description>&lt;P&gt;Hi Geoffrey,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response, I tried but it didn't work. Please find the below details.&lt;BR /&gt;&lt;B&gt;mysql.sock&lt;/B&gt; is located on &lt;STRONG&gt;/var/lib/mysql/mysql.sock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;PRE&gt;[root@g4t7474 etc]# &lt;STRONG&gt;locate mysql.sock &lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;/var/lib/mysql/mysql.sock&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;I tried &lt;BR /&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;PRE&gt;[root@g4t7474 etc]# cd /tmp/
[root@g4t7474 tmp]# ls -s /var/lib/mysql/mysql.sock mysql.sock
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory
&lt;STRONG&gt;0 mysql.sock&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++&lt;/P&gt;&lt;PRE&gt;g4t7474_[root@g4t7474 tmp]# service mysqld start
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2017 20:49:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186745#M67938</guid>
      <dc:creator>jesus-angel_mon</dc:creator>
      <dc:date>2017-09-13T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186746#M67939</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/25161/jesus-angelmondragon-mejia.html"&gt;Angel Mondragon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you see if there is any PID value on this file  /var/run/mysqld/mysqld.pid&lt;/P&gt;&lt;P&gt;Try to grep the process if there is any dead process hanging.  if so try to kill it and remove the pid file.&lt;/P&gt;&lt;P&gt;Also you can delete the socket file &lt;STRONG&gt;/var/lib/mysql/mysql.sock and /tmp/&lt;/STRONG&gt;mysql.sock.lock &amp;amp; /tmp/mysql.sock.&lt;/P&gt;&lt;P&gt;During the mysql restart these files will be recreated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:59:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186746#M67939</guid>
      <dc:creator>rrrajesh</dc:creator>
      <dc:date>2017-09-14T09:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186747#M67940</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/25161/jesus-angelmondragon-mejia.html"&gt;Angel Mondragon&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I think you wrongly typed the command just copy and paste. Do you see the difference in my command and yours?  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# cd /tmp
# ln -s /var/mysql/mysql.sock mysql.sock&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your command notice you used&lt;STRONG&gt; ls  -s &lt;/STRONG&gt;instead of &lt;STRONG&gt;ln  -s &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[root@g4t7474 etc]# cd /tmp/
[root@g4t7474 tmp]# ls -s /var/lib/mysql/mysql.sock mysql.sock
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory
0 mysql.sock&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please revert&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 15:38:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186747#M67940</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-14T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186748#M67941</link>
      <description>&lt;PRE&gt;g4t7474_[root@g4t7474 etc]# ls -ld /var/run/mysqld/mysqld.pid
ls: cannot access /var/run/mysqld/mysqld.pid: No such file or directory&lt;BR /&gt;
g4t7474_[root@g4t7474 etc]# ls -ld /var/lib/mysqld/mysqld.pid
ls: cannot access /var/lib/mysqld/mysqld.pid: No such file or directory&lt;BR /&gt;
g4t7474_[root@g4t7474 etc]# locate mysqld.pid
g4t7474_[root@g4t7474 etc]#&lt;/PRE&gt;&lt;P&gt;Any process hanging.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 01:04:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186748#M67941</guid>
      <dc:creator>jesus-angel_mon</dc:creator>
      <dc:date>2017-09-15T01:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186749#M67942</link>
      <description>&lt;P&gt;Same:&lt;/P&gt;&lt;PRE&gt;g4t7474_[root@g4t7474 ~]# cd /tmp
g4t7474_[root@g4t7474 tmp]# ln -s /var/mysql/mysql.sock mysql.sock
g4t7474_[root@g4t7474 tmp]# service mysqld start
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 01:06:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186749#M67942</guid>
      <dc:creator>jesus-angel_mon</dc:creator>
      <dc:date>2017-09-15T01:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186750#M67943</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/25161/jesus-angelmondragon-mejia.html"&gt;Angel Mondragon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cold you try this &lt;/P&gt;&lt;PRE&gt;chown mysql /var/run/mysqld/mysql.sock &lt;/PRE&gt;&lt;P&gt;Then start mysql&lt;/P&gt;&lt;PRE&gt;/usr/local/mysql/bin/safe_mysqld --user=mysql --skip-grant-tables&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 02:30:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186750#M67943</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-15T02:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186751#M67944</link>
      <description>&lt;PRE&gt;g4t7474_[root@g4t7474 ~]# chown mysql /var/run/mysqld/mysql.sock
chown: invalid user: `mysql'
g4t7474_[root@g4t7474 ~]# /usr/local/mysql/bin/safe_mysqld --user=mysql --skip-grant-tables
bash: /usr/local/mysql/bin/safe_mysqld: No such file or directory



g4t7474_[root@g4t7474 ~]# ls -ld /usr/local/mysql/bin/safe_mysqld
ls: cannot access /usr/local/mysql/bin/safe_mysqld: No such file or directory
g4t7474_[root@g4t7474 ~]# locate safe_mysqld
g4t7474_[root@g4t7474 ~]#
&lt;/PRE&gt;&lt;P&gt;But the i was working with root:&lt;BR /&gt;from: /etc/my.cnf&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0


#log-error=/var/log/mysqld.log
#pid-file=/var/run/mysqld/mysqld.pid


[mysqld]
#datadir=/var/lib/mysql
datadir=/opt/tools/mysql
socket=/var/lib/mysql/mysql.sock
#validate-password= off
innodb_data_file_path = ibdata1:10M:autoextend


[mysqladmin]
user=root


[client]
user=mysql




# Recommended in standard MySQL setup
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES


[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pi
&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 03:39:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186751#M67944</guid>
      <dc:creator>jesus-angel_mon</dc:creator>
      <dc:date>2017-09-15T03:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186752#M67945</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/25161/jesus-angelmondragon-mejia.html"&gt;Angel Mondragon&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Okay so you arerunning your mysql as root thats okay.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you check for th errors in &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;log-error=/var/log/mysqld.log &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;And see if there is a pid in this file remove it and restart mysql  you should be able to do a "&lt;STRONG&gt;safe_mysqld --user=mysql --skip-grant-tables"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;pid-file=/var/run/mysqld/mysqld.pid&lt;/EM&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 05:28:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186752#M67945</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-15T05:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mysql server do not start : ambari-server start</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186753#M67946</link>
      <description>&lt;P&gt;Everything indicates that many errors occurred during the preparation of the cluster and in the same way during the installation of HDP.
&lt;BR /&gt;We performed a re-image of everything and re-installation.&lt;BR /&gt;Sandbox is up now.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 01:56:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mysql-server-do-not-start-ambari-server-start/m-p/186753#M67946</guid>
      <dc:creator>jesus-angel_mon</dc:creator>
      <dc:date>2017-10-06T01:56:43Z</dc:date>
    </item>
  </channel>
</rss>

