<?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>Open source blog, linux, php, python, security &#187; mysql</title>
	<atom:link href="http://www.alonon.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alonon.net</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 07:23:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>

   <image>
    <title>Open source blog, linux, php, python, security</title>
    <url>http://0.gravatar.com/avatar/5152c5736f5f8dd9570ffb2f9068e8ab.png?s=48</url>
    <link>http://www.alonon.net</link>
   </image>
		<item>
		<title>Mysql reserved words</title>
		<link>http://www.alonon.net/mysql-reserved-words/</link>
		<comments>http://www.alonon.net/mysql-reserved-words/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 10:31:01 +0000</pubDate>
		<dc:creator>ALonon</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[reserved word]]></category>

		<guid isPermaLink="false">http://www.alonon.net/?p=425</guid>
		<description><![CDATA[Be careful when using this words as mysql table name. If you want to use anyway, don&#8217;t forget to add DATABASE.columnname in your sql command for example if you have a table with named desc, here is insert query; insert into USER(user.desc) values(&#8216;example&#8217;) Otherwise you&#8217;ll get something like that &#8230; mysql syntax error near unexpected &#8230; <a href="http://www.alonon.net/mysql-reserved-words/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Be careful when using this words as mysql table name. If you want to use anyway, don&#8217;t forget to add DATABASE.columnname in your sql command</p>
<p>for example if you have a table with named desc, here is insert query;</p>
<blockquote><p>insert into USER(user.desc) values(&#8216;example&#8217;)</p></blockquote>
<p>Otherwise you&#8217;ll get something like that &#8230;</p>
<blockquote><p>mysql syntax error near unexpected token &#8216;</p></blockquote>
<table border="1">
<tbody>
<tr>
<td><code>ACCESSIBLE</code></td>
<td><code>ADD</code></td>
<td><code>ALL</code></td>
</tr>
<tr>
<td><code>ALTER</code></td>
<td><code>ANALYZE</code></td>
<td><code>AND</code></td>
</tr>
<tr>
<td><code>AS</code></td>
<td><code>ASC</code></td>
<td><code>ASENSITIVE</code></td>
</tr>
<tr>
<td><code>BEFORE</code></td>
<td><code>BETWEEN</code></td>
<td><code>BIGINT</code></td>
</tr>
<tr>
<td><code>BINARY</code></td>
<td><code>BLOB</code></td>
<td><code>BOTH</code></td>
</tr>
<tr>
<td><code>BY</code></td>
<td><code>CALL</code></td>
<td><code>CASCADE</code></td>
</tr>
<tr>
<td><code>CASE</code></td>
<td><code>CHANGE</code></td>
<td><code>CHAR</code></td>
</tr>
<tr>
<td><code>CHARACTER</code></td>
<td><code>CHECK</code></td>
<td><code>COLLATE</code></td>
</tr>
<tr>
<td><code>COLUMN</code></td>
<td><code>CONDITION</code></td>
<td><code>CONSTRAINT</code></td>
</tr>
<tr>
<td><code>CONTINUE</code></td>
<td><code>CONVERT</code></td>
<td><code>CREATE</code></td>
</tr>
<tr>
<td><code>CROSS</code></td>
<td><code>CURRENT_DATE</code></td>
<td><code>CURRENT_TIME</code></td>
</tr>
<tr>
<td><code>CURRENT_TIMESTAMP</code></td>
<td><code>CURRENT_USER</code></td>
<td><code>CURSOR</code></td>
</tr>
<tr>
<td><code>DATABASE</code></td>
<td><code>DATABASES</code></td>
<td><code>DAY_HOUR</code></td>
</tr>
<tr>
<td><code>DAY_MICROSECOND</code></td>
<td><code>DAY_MINUTE</code></td>
<td><code>DAY_SECOND</code></td>
</tr>
<tr>
<td><code>DEC</code></td>
<td><code>DECIMAL</code></td>
<td><code>DECLARE</code></td>
</tr>
<tr>
<td><code>DEFAULT</code></td>
<td><code>DELAYED</code></td>
<td><code>DELETE</code></td>
</tr>
<tr>
<td><strong><code>DESC</code></strong></td>
<td><code>DESCRIBE</code></td>
<td><code>DETERMINISTIC</code></td>
</tr>
<tr>
<td><code>DISTINCT</code></td>
<td><code>DISTINCTROW</code></td>
<td><code>DIV</code></td>
</tr>
<tr>
<td><code>DOUBLE</code></td>
<td><code>DROP</code></td>
<td><code>DUAL</code></td>
</tr>
<tr>
<td><code>EACH</code></td>
<td><code>ELSE</code></td>
<td><code>ELSEIF</code></td>
</tr>
<tr>
<td><code>ENCLOSED</code></td>
<td><code>ESCAPED</code></td>
<td><code>EXISTS</code></td>
</tr>
<tr>
<td><code>EXIT</code></td>
<td><code>EXPLAIN</code></td>
<td><code>FALSE</code></td>
</tr>
<tr>
<td><code>FETCH</code></td>
<td><code>FLOAT</code></td>
<td><code>FLOAT4</code></td>
</tr>
<tr>
<td><code>FLOAT8</code></td>
<td><code>FOR</code></td>
<td><code>FORCE</code></td>
</tr>
<tr>
<td><code>FOREIGN</code></td>
<td><code>FROM</code></td>
<td><code>FULLTEXT</code></td>
</tr>
<tr>
<td><code>GRANT</code></td>
<td><code>GROUP</code></td>
<td><code>HAVING</code></td>
</tr>
<tr>
<td><code>HIGH_PRIORITY</code></td>
<td><code>HOUR_MICROSECOND</code></td>
<td><code>HOUR_MINUTE</code></td>
</tr>
<tr>
<td><code>HOUR_SECOND</code></td>
<td><code>IF</code></td>
<td><code>IGNORE</code></td>
</tr>
<tr>
<td><code>IN</code></td>
<td><code>INDEX</code></td>
<td><code>INFILE</code></td>
</tr>
<tr>
<td><code>INNER</code></td>
<td><code>INOUT</code></td>
<td><code>INSENSITIVE</code></td>
</tr>
<tr>
<td><code>INSERT</code></td>
<td><code>INT</code></td>
<td><code>INT1</code></td>
</tr>
<tr>
<td><code>INT2</code></td>
<td><code>INT3</code></td>
<td><code>INT4</code></td>
</tr>
<tr>
<td><code>INT8</code></td>
<td><code>INTEGER</code></td>
<td><code>INTERVAL</code></td>
</tr>
<tr>
<td><code>INTO</code></td>
<td><code>IS</code></td>
<td><code>ITERATE</code></td>
</tr>
<tr>
<td><code>JOIN</code></td>
<td><strong><code>KEY</code></strong></td>
<td><code>KEYS</code></td>
</tr>
<tr>
<td><code>KILL</code></td>
<td><code>LEADING</code></td>
<td><code>LEAVE</code></td>
</tr>
<tr>
<td><code>LEFT</code></td>
<td><code>LIKE</code></td>
<td><code>LIMIT</code></td>
</tr>
<tr>
<td><code>LINEAR</code></td>
<td><code>LINES</code></td>
<td><code>LOAD</code></td>
</tr>
<tr>
<td><code>LOCALTIME</code></td>
<td><code>LOCALTIMESTAMP</code></td>
<td><code>LOCK</code></td>
</tr>
<tr>
<td><code>LONG</code></td>
<td><code>LONGBLOB</code></td>
<td><code>LONGTEXT</code></td>
</tr>
<tr>
<td><code>LOOP</code></td>
<td><code>LOW_PRIORITY</code></td>
<td><code>MASTER_SSL_VERIFY_SERVER_CERT</code></td>
</tr>
<tr>
<td><code>MATCH</code></td>
<td><code>MEDIUMBLOB</code></td>
<td><code>MEDIUMINT</code></td>
</tr>
<tr>
<td><code>MEDIUMTEXT</code></td>
<td><code>MIDDLEINT</code></td>
<td><code>MINUTE_MICROSECOND</code></td>
</tr>
<tr>
<td><code>MINUTE_SECOND</code></td>
<td><code>MOD</code></td>
<td><code>MODIFIES</code></td>
</tr>
<tr>
<td><code>NATURAL</code></td>
<td><code>NOT</code></td>
<td><code>NO_WRITE_TO_BINLOG</code></td>
</tr>
<tr>
<td><code>NULL</code></td>
<td><code>NUMERIC</code></td>
<td><code>ON</code></td>
</tr>
<tr>
<td><code>OPTIMIZE</code></td>
<td><code>OPTION</code></td>
<td><code>OPTIONALLY</code></td>
</tr>
<tr>
<td><code>OR</code></td>
<td><code>ORDER</code></td>
<td><code>OUT</code></td>
</tr>
<tr>
<td><code>OUTER</code></td>
<td><code>OUTFILE</code></td>
<td><code>PRECISION</code></td>
</tr>
<tr>
<td><code>PRIMARY</code></td>
<td><code>PROCEDURE</code></td>
<td><code>PURGE</code></td>
</tr>
<tr>
<td><code>RANGE</code></td>
<td><code>READ</code></td>
<td><code>READS</code></td>
</tr>
<tr>
<td><code>READ_WRITE</code></td>
<td><code>REAL</code></td>
<td><code>REFERENCES</code></td>
</tr>
<tr>
<td><code>REGEXP</code></td>
<td><code>RELEASE</code></td>
<td><code>RENAME</code></td>
</tr>
<tr>
<td><code>REPEAT</code></td>
<td><code>REPLACE</code></td>
<td><code>REQUIRE</code></td>
</tr>
<tr>
<td><code>RESTRICT</code></td>
<td><code>RETURN</code></td>
<td><code>REVOKE</code></td>
</tr>
<tr>
<td><code>RIGHT</code></td>
<td><code>RLIKE</code></td>
<td><code>SCHEMA</code></td>
</tr>
<tr>
<td><code>SCHEMAS</code></td>
<td><code>SECOND_MICROSECOND</code></td>
<td><code>SELECT</code></td>
</tr>
<tr>
<td><code>SENSITIVE</code></td>
<td><code>SEPARATOR</code></td>
<td><code>SET</code></td>
</tr>
<tr>
<td><code>SHOW</code></td>
<td><code>SMALLINT</code></td>
<td><code>SPATIAL</code></td>
</tr>
<tr>
<td><code>SPECIFIC</code></td>
<td><code>SQL</code></td>
<td><code>SQLEXCEPTION</code></td>
</tr>
<tr>
<td><code>SQLSTATE</code></td>
<td><code>SQLWARNING</code></td>
<td><code>SQL_BIG_RESULT</code></td>
</tr>
<tr>
<td><code>SQL_CALC_FOUND_ROWS</code></td>
<td><code>SQL_SMALL_RESULT</code></td>
<td><code>SSL</code></td>
</tr>
<tr>
<td><code>STARTING</code></td>
<td><code>STRAIGHT_JOIN</code></td>
<td><code>TABLE</code></td>
</tr>
<tr>
<td><code>TERMINATED</code></td>
<td><code>THEN</code></td>
<td><code>TINYBLOB</code></td>
</tr>
<tr>
<td><code>TINYINT</code></td>
<td><code>TINYTEXT</code></td>
<td><code>TO</code></td>
</tr>
<tr>
<td><code>TRAILING</code></td>
<td><code>TRIGGER</code></td>
<td><code>TRUE</code></td>
</tr>
<tr>
<td><code>UNDO</code></td>
<td><code>UNION</code></td>
<td><code>UNIQUE</code></td>
</tr>
<tr>
<td><code>UNLOCK</code></td>
<td><code>UNSIGNED</code></td>
<td><code>UPDATE</code></td>
</tr>
<tr>
<td><code>USAGE</code></td>
<td><code>USE</code></td>
<td><code>USING</code></td>
</tr>
<tr>
<td><code>UTC_DATE</code></td>
<td><code>UTC_TIME</code></td>
<td><code>UTC_TIMESTAMP</code></td>
</tr>
<tr>
<td><code>VALUES</code></td>
<td><code>VARBINARY</code></td>
<td><code>VARCHAR</code></td>
</tr>
<tr>
<td><code>VARCHARACTER</code></td>
<td><code>VARYING</code></td>
<td><code>WHEN</code></td>
</tr>
<tr>
<td><code>WHERE</code></td>
<td><code>WHILE</code></td>
<td><code>WITH</code></td>
</tr>
<tr>
<td><code>WRITE</code></td>
<td><code>XOR</code></td>
<td><code>YEAR_MONTH</code></td>
</tr>
<tr>
<td><code>ZEROFILL</code></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.alonon.net/mysql-reserved-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql_insert_id</title>
		<link>http://www.alonon.net/mysql_insert_id/</link>
		<comments>http://www.alonon.net/mysql_insert_id/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 22:34:14 +0000</pubDate>
		<dc:creator>ALonon</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql_insert_id]]></category>

		<guid isPermaLink="false">http://www.alonon.net/?p=34</guid>
		<description><![CDATA[mysql_insert_id() is a very usefull function.. what does it do ? it returns id generated from previous insert query. Could you give some example ? mysql_query("insert into product (name) values(aflower)"); if you want to print id of "aflower" you can use mysql_insert_id echo mysql_insert_id(); !: to use mysql_insert_id your cloumn should be an auto_increment cloumn]]></description>
			<content:encoded><![CDATA[<p>mysql_insert_id() is a very usefull function..</p>
<p>what does it do ?</p>
<p>it returns id generated from previous insert query.</p>
<p>Could you give some example ?</p>
<pre lang="php">mysql_query("insert into product (name) values(aflower)");
if you want to print id of "aflower" you can use mysql_insert_id
echo mysql_insert_id();</pre>
<p>!: to use mysql_insert_id your cloumn should be an auto_increment cloumn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alonon.net/mysql_insert_id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>install php apache mysql phpmyadmin</title>
		<link>http://www.alonon.net/install-php-apache-mysql-phpmyadmin/</link>
		<comments>http://www.alonon.net/install-php-apache-mysql-phpmyadmin/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 08:32:59 +0000</pubDate>
		<dc:creator>ALonon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.alonon.net/?p=30</guid>
		<description><![CDATA[On ubuntu and kubuntu systems you can install php5 apache2 mysql and phpmyadmin with this command sudo apt-get install apache2 php5 php5-mysql php5-gd mysql-server phpmyadmin To enable mod_rewrite run this: sudo ln -sfn /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ sudo /etc/init.d/apache2 restart]]></description>
			<content:encoded><![CDATA[<p>On ubuntu and kubuntu systems you can install php5 apache2 mysql and phpmyadmin with this command</p>
<blockquote><p>sudo apt-get install apache2 php5 php5-mysql php5-gd mysql-server phpmyadmin</p></blockquote>
<p>To enable mod_rewrite run this:</p>
<blockquote><p>sudo ln -sfn /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/<br />
sudo /etc/init.d/apache2 restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.alonon.net/install-php-apache-mysql-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mysql password reset,change</title>
		<link>http://www.alonon.net/mysql-password-resetchange/</link>
		<comments>http://www.alonon.net/mysql-password-resetchange/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 21:27:29 +0000</pubDate>
		<dc:creator>ALonon</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql password]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[reset]]></category>

		<guid isPermaLink="false">http://www.alonon.net/?p=28</guid>
		<description><![CDATA[Q. How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX like operating system over ssh / telnet session? A. Setting up mysql password is one of the essential tasks. root user is MySQL admin account. Please note that Linux / UNIX login root account for your operating system and MySQL root &#8230; <a href="http://www.alonon.net/mysql-password-resetchange/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Q. How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX like operating system over ssh / telnet session?</p>
<p>A. Setting up mysql password is one of the essential tasks. root user is MySQL admin account. Please note that Linux / UNIX login root account for your operating system and MySQL root are different. They are separate and nothing to do with each other (indeed some admin removes root account and setup admin as mysql super user).<br />
mysqladmin command to change root password</p>
<p><span id="more-28"></span></p>
<p>If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:</p>
<p>$ mysqladmin -u root password NEWPASSWORD</p>
<p>However, if you want to change (or update) a root password, then you need to use following command</p>
<p>$ mysqladmin -u root -p oldpassword newpass</p>
<p>Enter password:<br />
Change MySQL password for other user</p>
<p>To change a normal user password you need to type (let us assume you would like to change password for vivek):</p>
<p>$ mysqladmin -u vivek -p oldpassword newpass</p>
<p>Changing MySQL root user password using mysql sql command</p>
<p>This is another method. MySQL stores username and passwords in user table inside MySQL database. You can directly update password using the following method to update or change password for user vivek:</p>
<p>1) Login to mysql server, type following command at shell prompt:</p>
<p>$ mysql -u root -p</p>
<p>2) Use mysql database (type command at mysql&gt; prompt):</p>
<p>mysql&gt; use mysql;</p>
<p>3) Change password for user vivek:</p>
<p>mysql&gt; update user set password=PASSWORD(&#8220;NEWPASSWORD&#8221;) where User=&#8217;vivek&#8217;;</p>
<p>4) Reload privileges:</p>
<p>mysql&gt; flush privileges;<br />
mysql&gt; quit</p>
<p>This method you need to use while using PHP or Perl scripting.</p>
<p>until know , it&#8217;s about changing password<br />
how you can reset your mysql pass ?</p>
<p>To be able to modify the existing root password, you must firstly be connected to it. If you know the root password and just want to reinitialize it, you can skip this part. In the case that you don’t have the root password then follow the steps below.<br />
It s is possible to bypass the authentication process and to access MySQL:</p>
<p>Stop the MySQL server.</p>
<p>#/etc/init.d/mysql stop</p>
<p>Restart MySQL, disabling network communication and skipping the authentication procedure.</p>
<p>#mysqld &#8211;skip-grant-tables &#8211;skip-networking &amp;</p>
<p>Reinitializing the password:</p>
<p>Get connected to the system database (mysql) of MySQL:</p>
<p># mysql mysql -u root</p>
<p>Type in the following command and reset your password</p>
<p>UPDATE user SET password=PASSWORD(&#8216;newpassword&#8217;) WHERE user=&#8221;root&#8221;;</p>
<p>If you didn’t go through the first step, to validate the changes simply type:</p>
<p>FLUSH PRIVILEGES;</p>
<p>If you started MySQL manually(bypassing the authentication process), the server must be restarted:</p>
<p>#/etc/init.d/mysql restart</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alonon.net/mysql-password-resetchange/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

