<?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>sql Archives - george mastro</title>
	<atom:link href="https://georgemastro.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>https://georgemastro.com/tag/sql/</link>
	<description>web developer, photographer, filmmaker</description>
	<lastBuildDate>Sat, 25 Oct 2025 20:41:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://georgemastro.com/wp-content/uploads/2016/02/cropped-mastro-avatar-square-32x32.jpg</url>
	<title>sql Archives - george mastro</title>
	<link>https://georgemastro.com/tag/sql/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Recovering admin password in drupal 7 from phpmyadmin</title>
		<link>https://georgemastro.com/recovering-admin-password-in-drupal-7-from-phpmyadmin/</link>
		
		<dc:creator><![CDATA[mastro]]></dc:creator>
		<pubDate>Fri, 30 May 2014 15:00:56 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[sql]]></category>
		<guid isPermaLink="false">http://georgemastro.com/?p=30</guid>

					<description><![CDATA[<p>Just head in phpmyadmin and find the table &#8216;users&#8217;. Then find user 1 and change the password with the value &#8216;$S$Drl0vgZ9yuU9uc4JyaTMHxMPriC7q/PsOUOx52fCrVQSTpI/Tu4x&#8217; which is the encrypted value for the password &#8216;drupal&#8217;. Want to do it from shell? No problem. Just type: UPDATE users SET name='admin', pass='$S$Drl0vgZ9yuU9uc4JyaTMHxMPriC7q/PsOUOx52fCrVQSTpI/Tu4x' WHERE uid = 1; Do you still have Drupal 6? [&#8230;]</p>
<p>The post <a href="https://georgemastro.com/recovering-admin-password-in-drupal-7-from-phpmyadmin/">Recovering admin password in drupal 7 from phpmyadmin</a> appeared first on <a href="https://georgemastro.com">george mastro</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Just head in phpmyadmin and find the table &#8216;users&#8217;. Then find user 1 and change the password with the value &#8216;$S$Drl0vgZ9yuU9uc4JyaTMHxMPriC7q/PsOUOx52fCrVQSTpI/Tu4x&#8217; which is the encrypted value for the password &#8216;drupal&#8217;.</p>
<p>Want to do it from shell? No problem. Just type:<br />
<code>UPDATE users SET name='admin', pass='$S$Drl0vgZ9yuU9uc4JyaTMHxMPriC7q/PsOUOx52fCrVQSTpI/Tu4x' WHERE uid = 1;</code></p>
<p>Do you still have Drupal 6? OMG! Are you serious? You have to update immediately! But to update your system just type:<br />
<code>UPDATE users SET name='admin', pass=md5('drupal') WHERE uid = 1;</code><br />
&#8230;in order to revoke your password.</p>
<p>The post <a href="https://georgemastro.com/recovering-admin-password-in-drupal-7-from-phpmyadmin/">Recovering admin password in drupal 7 from phpmyadmin</a> appeared first on <a href="https://georgemastro.com">george mastro</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ERROR: ASCII &#8216;\0&#8217; appeared in the statement, but this is not allowed unless option&#8230;</title>
		<link>https://georgemastro.com/error-ascii-0-appeared-in-the-statement-but-this-is-not-allowed-unless-option/</link>
		
		<dc:creator><![CDATA[mastro]]></dc:creator>
		<pubDate>Fri, 30 May 2014 14:51:17 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sysadmin]]></category>
		<guid isPermaLink="false">http://georgemastro.com/?p=22</guid>

					<description><![CDATA[<p>ERROR: ASCII &#8216;\0&#8217; appeared in the statement, but this is not allowed unless option &#8211;binary-mode is enabled and mysql is run in non-interactive mode. Set &#8211;binary-mode to 1 if ASCII &#8216;\0&#8217; is expected. Query:  Today I came across with this very weird error message while trying to import my database from shell. Well&#8230;.it&#8217;s not very [&#8230;]</p>
<p>The post <a href="https://georgemastro.com/error-ascii-0-appeared-in-the-statement-but-this-is-not-allowed-unless-option/">ERROR: ASCII &#8216;\0&#8217; appeared in the statement, but this is not allowed unless option&#8230;</a> appeared first on <a href="https://georgemastro.com">george mastro</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>ERROR: ASCII &#8216;\0&#8217; appeared in the statement, but this is not allowed unless option &#8211;binary-mode is enabled and mysql is run in non-interactive mode. Set &#8211;binary-mode to 1 if ASCII &#8216;\0&#8217; is expected. Query: </strong></p>
<p><span id="more-22"></span><br />
Today I came across with this very weird error message while trying to import my database from shell. Well&#8230;.it&#8217;s not very clear what the heck is going on, but the solution is very simple. You just have to gunzip your sql.gz file before you import it.<br />
So just run<br />
<code>gunzip myfile.sql.gz</code></p>
<p>The post <a href="https://georgemastro.com/error-ascii-0-appeared-in-the-statement-but-this-is-not-allowed-unless-option/">ERROR: ASCII &#8216;\0&#8217; appeared in the statement, but this is not allowed unless option&#8230;</a> appeared first on <a href="https://georgemastro.com">george mastro</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
