<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>root | SDT 攻城獅區</title>
	<atom:link href="https://sdt.hameba.tw/tag/root/feed/" rel="self" type="application/rss+xml" />
	<link>https://sdt.hameba.tw</link>
	<description>由Steven, Der, Ted 三位高級打字員所組成，是三位工程師(攻城獅)所維護的技術分享平台，或許偶爾會分享一些日常，有任何問題或是錯誤的部分，歡迎留言告訴我們！</description>
	<lastBuildDate>Tue, 18 Feb 2020 16:44:57 +0800</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3</generator>

<image>
	<url>https://sdt.hameba.tw/wp-content/uploads/2020/02/hameba_favicon-150x150.png</url>
	<title>root | SDT 攻城獅區</title>
	<link>https://sdt.hameba.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>sudo mysql -u root -p 移除 sudo 方式</title>
		<link>https://sdt.hameba.tw/518/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sudo-mysql-u-root-p-%25e7%25a7%25bb%25e9%2599%25a4-sudo-%25e6%2596%25b9%25e5%25bc%258f</link>
				<comments>https://sdt.hameba.tw/518/#respond</comments>
				<pubDate>Tue, 18 Feb 2020 16:32:12 +0000</pubDate>
		<dc:creator><![CDATA[Hsu Steven]]></dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">https://sdt.hameba.tw/?p=518</guid>
				<description><![CDATA[<p>安裝好Ubuntu 18.04.1 以後，不能以使用者身份執行mysql 指令， 必須使用加上sudo，才可以 &#8230; </p>
<p class="link-more"><a href="https://sdt.hameba.tw/518/" class="more-link">閱讀全文<span class="screen-reader-text">〈sudo mysql -u root -p 移除 sudo 方式〉</span></a></p>
The post <a href="https://sdt.hameba.tw/518/">sudo mysql -u root -p 移除 sudo 方式</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></description>
								<content:encoded><![CDATA[<p>安裝好Ubuntu 18.04.1 以後，不能以使用者身份執行mysql 指令，<br />
必須使用加上sudo，才可以執行mysql 指令。</p>
<p><span id="more-518"></span></p>
<p>解決方式如下：</p><pre class="crayon-plain-tag">$ sudo mysql -u root -p
Enter password:【輸入密碼，如無密碼直接Enter】

// 使用mysql db
&gt; use mysql;
&gt; update user SET plugin='mysql_native_password' WHERE User='root';
&gt; update user set authentication_string=password('root新密碼') where user='root';
&gt; flush privileges;
&gt; exit;</pre><p>完成後，可以再試試看用</p>
<p>$ mysql -u root -p</p>
<p>就不會被阻擋了</p>
<div id="gtx-trans">
<div class="gtx-trans-icon"></div>
</div>The post <a href="https://sdt.hameba.tw/518/">sudo mysql -u root -p 移除 sudo 方式</a> first appeared on <a href="https://sdt.hameba.tw">SDT 攻城獅區</a>.]]></content:encoded>
							<wfw:commentRss>https://sdt.hameba.tw/518/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
