<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mysqld on Michael’s Domain</title><link>https://jeltsch.org/en/tags/mysqld/</link><description>Recent content in Mysqld on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/mysqld/index.xml" rel="self" type="application/rss+xml"/><item><title>Upgrading mysql on Ubuntu Lucid Lynx (10.04) hangs</title><link>https://jeltsch.org/en/upgrading_mysql_on_ubuntu_lucid_lynx_10_04_hangs/</link><pubDate>Wed, 28 Nov 2012 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/upgrading_mysql_on_ubuntu_lucid_lynx_10_04_hangs/</guid><description>&lt;p&gt;Already the third time this happens to me: An update is available for the mysql server and I just &amp;ldquo;apt-get upgrade&amp;rdquo;. The upgrade process gets totally stuck at the following task:&lt;code&gt;Preparing to replace mysql-server-5.1 5.1.66-0ubuntu0.10.04.1 (using …/mysql-server-5.1_5.1.66-0ubuntu0.10.04.2_i386.deb) …mysql stop/waiting&lt;/code&gt;The process that got again stuck in some eternal loop (or whatever) is an egrep replacement of some textfile:&lt;code&gt;egrep -qi -r ^[^#]*ndb.connectstring|^[:space:]*\[[:space:]*ndb_mgmd /etc/mysql/&lt;/code&gt;I just killed that process and the upgrade resumes as nothing would have happened.&lt;/p&gt;</description></item><item><title>MySQL install</title><link>https://jeltsch.org/en/mysql_install/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/mysql_install/</guid><description>&lt;p&gt;After installing the Suse 9 rpm, execute the following commands:&lt;code&gt;sudo /usr/bin/mysql_install_db&lt;/code&gt;(Creating default databases &amp;amp; permissions. Apparently the same can be done by &amp;ldquo;sudo rcmysql start&amp;rdquo;)&lt;code&gt;sudo /usr/bin/mysqld_safe --user=mysql &amp;amp;&lt;/code&gt;(Start the server for the first time)REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! This is done with: &lt;code&gt;/usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h hostname password 'new-password'&lt;/code&gt;Give all privileges to root and user:&lt;code&gt;/usr/bin/mysql -u root -p Enter password:Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 6 to server version: 4.0.15 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO user@localhost IDENTIFIED BY 'Password' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec)mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO user@'%' IDENTIFIED BY 'Password' WITH GRANT OPTION;Query OK, 0 rows affected (0.00 sec)mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'Password' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec)mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'Password' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec)mysql&amp;gt; quit Bye``/usr/bin/mysqladmin version&lt;/code&gt;(later &amp;ldquo;/usr/bin/mysqladmin -u root -p version&amp;rdquo; is necessary)&lt;code&gt;/usr/bin/mysqladmin variables&lt;/code&gt;(later &amp;ldquo;/usr/bin/mysqladmin -u root -p variables&amp;rdquo; is necessary)&lt;code&gt;/usr/bin/mysqladmin -u root -p shutdown&lt;/code&gt;(can you shutdown the server?)&lt;code&gt;sudo /usr/bin/mysqld_safe --log &amp;amp;&lt;/code&gt;(can you start the server?)&lt;code&gt;ps -A | grep mysql&lt;/code&gt;(check whether the server process is running)&lt;code&gt;/usr/bin/mysqlshow -u root -p&lt;/code&gt;(show all databases)&lt;code&gt;/usr/bin/mysqlshow -u root -p mysql&lt;/code&gt;(show the tables of database &amp;ldquo;mysql&amp;rdquo;)To start the mysql daemon at system startup, you should go to the runlevel editor (advanced mode) and toggle the status for the mysql entry of init.d&lt;/p&gt;</description></item></channel></rss>