<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_MySQL</id>
	<title>Ubuntu MySQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=Ubuntu_MySQL"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Ubuntu_MySQL&amp;action=history"/>
	<updated>2026-06-19T21:32:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=Ubuntu_MySQL&amp;diff=6064&amp;oldid=prev</id>
		<title>Admin at 00:17, 16 March 2015</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Ubuntu_MySQL&amp;diff=6064&amp;oldid=prev"/>
		<updated>2015-03-16T00:17:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:17, 16 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot;&gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sudo service mysql start&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sudo service mysql start&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Ubuntu]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=Ubuntu_MySQL&amp;diff=6063&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=Admin=  The stock Ubuntu version of MySQL is running on port 3306.  The binary is &lt;code&gt;/usr/bin/mysql&lt;/code&gt;.  The configuration is in &lt;code&gt;/etc/mysql/my.cnf&lt;/code&gt;.  The data...&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=Ubuntu_MySQL&amp;diff=6063&amp;oldid=prev"/>
		<updated>2015-03-16T00:17:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Admin=  The stock Ubuntu version of MySQL is running on port 3306.  The binary is &amp;lt;code&amp;gt;/usr/bin/mysql&amp;lt;/code&amp;gt;.  The configuration is in &amp;lt;code&amp;gt;/etc/mysql/my.cnf&amp;lt;/code&amp;gt;.  The data...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Admin=&lt;br /&gt;
&lt;br /&gt;
The stock Ubuntu version of MySQL is running on port 3306.&lt;br /&gt;
&lt;br /&gt;
The binary is &amp;lt;code&amp;gt;/usr/bin/mysql&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The configuration is in &amp;lt;code&amp;gt;/etc/mysql/my.cnf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The database data itself is stored in &amp;lt;code&amp;gt;/var/lib/mysql&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Resetting Password==&lt;br /&gt;
&lt;br /&gt;
More info here: https://help.ubuntu.com/community/MysqlPasswordReset&lt;br /&gt;
&lt;br /&gt;
To reset the admin password, first stop the mysql service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo service mysql stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, start mysql with the skip-grant-tables option so that it doesn&amp;#039;t worry about authenticating users:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start mysql as the root user:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now execute the following commands in MySQL, one line at a time:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SET PASSWORD FOR root@&amp;#039;localhost&amp;#039; = PASSWORD(&amp;#039;password&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(alt? &amp;lt;code&amp;gt;UPDATE mysql.user SET Password=PASSWORD(&amp;#039;newpwd&amp;#039;) WHERE User=&amp;#039;root&amp;#039;;&amp;lt;/code&amp;gt; - in case you have root account that can connect from anywhere)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can type &amp;quot;exit&amp;quot; and get back to a regular command line.&lt;br /&gt;
&lt;br /&gt;
Stop and start the MySQL service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo service mysql stop # &amp;lt;-- not really necessary&lt;br /&gt;
sudo service mysql start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>