<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-37830923</id><updated>2012-01-19T05:40:51.856-08:00</updated><category term='object'/><category term='httpd_sys_content_t'/><category term='ByteArray'/><category term='chcon'/><title type='text'>HelpDesk :: IT Troubleshooting and Setups</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://it-helpdesk.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://it-helpdesk.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>wahyu adi setyanto</name><uri>https://profiles.google.com/117426353308080335465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-i0pjGMNplCM/AAAAAAAAAAI/AAAAAAAAACI/_g66sGQV1Hk/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-37830923.post-2909783288424362690</id><published>2007-11-11T12:13:00.000-08:00</published><updated>2007-11-11T18:25:06.489-08:00</updated><title type='text'>MySQL Fatal Error Maximum Execution Time Exceeded</title><content type='html'>I was trying to backup a database containing +/- 2,2 millions record from one host (Ubuntu 7.10 running MySQL 5.0.45) and restore to another host (Windows XP running MySQL 5.0.0alpha).&lt;br /&gt;&lt;br /&gt;I ran &lt;code&gt;"mysqldump -user=wahyu -p aida32wyu &gt; aida32wyu.sql"&lt;/code&gt;, where aida32wyu being the database name, copy  the result (aida32wyu.sql) to target machine and execute &lt;code&gt;"source d:\aida32wyu.sql"&lt;/code&gt; from mysql console just to get "Fatal Error: Maximum execution time 300 seconds exceeded".&lt;br /&gt;&lt;br /&gt;I thought something was wrong with the mysql in the target machine, like too short execution time or whatever option it has right inside my.cnf or elsewhere. But I found none of them. Googling also yielded things people refer to as problem inherent with PHP setting itself, but I didn't use any PHP so it must have been something else.&lt;br /&gt;&lt;br /&gt;Still, I insisted the problem was on the restoring process, until I found out that the restoring process always halt after the same records and finally confirmed by using "tail aida32wyu.sql" that it was the mysqldump containing exactly the line "Fatal Error ..." that breaks the SQL syntax.&lt;br /&gt;&lt;br /&gt;Then I focused on mysqldump. I wanted to know if it has some command-line options to indicate maximum execution time but none found. An interesting thing happen suddenly when I figured out  from the "mysqldump --help" that we should  disable --opt option (by --skip-opt) to dump SQL to be restored to older version of MySQL.&lt;br /&gt;&lt;br /&gt;Voila! I ran &lt;br /&gt;&lt;code&gt;"mysqldump --skip-opt --port=3306 -p user=wahyu -v aida32wyu &gt; aida32wyu.sql"&lt;/code&gt;&lt;br /&gt; and didn't find any "Fatal Error" anywhere in the result. Restoring the SQL to my target machine was normal. No sweat.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37830923-2909783288424362690?l=it-helpdesk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-helpdesk.blogspot.com/feeds/2909783288424362690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37830923&amp;postID=2909783288424362690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/2909783288424362690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/2909783288424362690'/><link rel='alternate' type='text/html' href='http://it-helpdesk.blogspot.com/2007/11/mysql-fatal-error-maximum-execution.html' title='MySQL Fatal Error Maximum Execution Time Exceeded'/><author><name>wahyu adi setyanto</name><uri>https://profiles.google.com/117426353308080335465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-i0pjGMNplCM/AAAAAAAAAAI/AAAAAAAAACI/_g66sGQV1Hk/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37830923.post-1807728247853907788</id><published>2007-03-10T19:32:00.000-08:00</published><updated>2007-03-12T05:51:45.635-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='httpd_sys_content_t'/><category scheme='http://www.blogger.com/atom/ns#' term='chcon'/><title type='text'>Modifying File Security Context</title><content type='html'>&lt;span style=""&gt;When you are Fedora user like me, and occasionaly download some scripts to try on your own web server, make sure you have changed the security context of the files to "httpd_sys_content_t" by applying:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;chcon -R -h -t httpd_sys_content_t *&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;after you copy to your webserver directory, otherwise you will get "Forbidden Access" result.&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37830923-1807728247853907788?l=it-helpdesk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-helpdesk.blogspot.com/feeds/1807728247853907788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37830923&amp;postID=1807728247853907788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/1807728247853907788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/1807728247853907788'/><link rel='alternate' type='text/html' href='http://it-helpdesk.blogspot.com/2007/03/when-you-are-fedora-user-like-me-and.html' title='Modifying File Security Context'/><author><name>wahyu adi setyanto</name><uri>https://profiles.google.com/117426353308080335465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-i0pjGMNplCM/AAAAAAAAAAI/AAAAAAAAACI/_g66sGQV1Hk/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37830923.post-116631199837281854</id><published>2006-12-16T15:00:00.000-08:00</published><updated>2007-03-12T05:53:48.651-07:00</updated><title type='text'>Importing SQL Server CSV to MySQL</title><content type='html'>I have another situation here. I want to import SQL Server data (SQL Server 2000 running onWindows 2003), a subset of it, into MySQL database (v5.0.22 running on Fedora Core 5). I have phpMyAdmin 2.9.1-rc2 up and running on my Linux box. This is how I get it done:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Run the desired query using SQL Server Query Analyzer and wait until the result show up in the data grid.&lt;/li&gt;&lt;li&gt;Right-click on the data grid, select "Select All", and then "Save As". A "Save Grid Results" dialog box appears.&lt;/li&gt;&lt;li&gt;Choose the file name you want, the file type ("Export Files (.CSV)"), the file format ("ANSI"), and the column delimiter ("Comma Separated (CSV)") then click save. You have to save it anywhere accessible from your phpMyAdmin.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Login to phpMyAdmin, create the target database if not exists yet, and create the target table within that database. Make sure the destination table has as many columns using the proper data types as the data being exported. Otherwise I do not guarantee it will work.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;From the phpMyAdmin SQL menu make sure you have replace the ";" in the Delimiter input text with "," as we use comma separated value for each fields, and type this query:&lt;br /&gt;&lt;pre class="programlisting"&gt;LOAD DATA INFILE '/path/to/file_name.CSV' INTO TABLE &lt;em class="replaceable"&gt;&lt;code&gt;table_name&lt;/code&gt;&lt;/em&gt;&lt;br /&gt;FIELDS TERMINATED BY ',' ENCLOSED BY '"'&lt;br /&gt;LINES TERMINATED BY '\n';&lt;span style="font-family:Georgia,serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Don't forget to click "Go" when you're finished and  you're done with it.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre class="programlisting"&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37830923-116631199837281854?l=it-helpdesk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-helpdesk.blogspot.com/feeds/116631199837281854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37830923&amp;postID=116631199837281854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/116631199837281854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/116631199837281854'/><link rel='alternate' type='text/html' href='http://it-helpdesk.blogspot.com/2006/12/i-have-another-situation-here.html' title='Importing SQL Server CSV to MySQL'/><author><name>wahyu adi setyanto</name><uri>https://profiles.google.com/117426353308080335465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-i0pjGMNplCM/AAAAAAAAAAI/AAAAAAAAACI/_g66sGQV1Hk/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37830923.post-116604171672864063</id><published>2006-12-13T12:16:00.000-08:00</published><updated>2007-03-12T05:59:59.378-07:00</updated><title type='text'>MySQL to ColdFusion Date/DateTime Conversion</title><content type='html'>If you work with Coldfusion and MySQL database, and would like to retrieve and display data of date/datetime type, be sure to format it first with DateFormat() function.&lt;br /&gt;&lt;br /&gt;For example: DateFormat(#date_vars#, "dd mmm yyyy") to make it like "23 Dec 2006".&lt;br /&gt;&lt;br /&gt;Otherwise you would get output like this:&lt;br /&gt;{ts 'the_date in yyyy-mm-dd hh:mm:ss'}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37830923-116604171672864063?l=it-helpdesk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-helpdesk.blogspot.com/feeds/116604171672864063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37830923&amp;postID=116604171672864063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/116604171672864063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/116604171672864063'/><link rel='alternate' type='text/html' href='http://it-helpdesk.blogspot.com/2006/12/if-you-work-with-coldfusion-and-mysql.html' title='MySQL to ColdFusion Date/DateTime Conversion'/><author><name>wahyu adi setyanto</name><uri>https://profiles.google.com/117426353308080335465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-i0pjGMNplCM/AAAAAAAAAAI/AAAAAAAAACI/_g66sGQV1Hk/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37830923.post-116593668327168126</id><published>2006-12-12T06:44:00.000-08:00</published><updated>2007-03-12T06:06:34.098-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ByteArray'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><title type='text'>ByteArray objects cannot be converted to strings</title><content type='html'>Here's the situation.&lt;br /&gt;&lt;br /&gt;I have a "tb_customer" table which has a column named "address" of type Text in a MySQL database. I use &lt;cfquery&gt; tag named "getCustomer" to invoke simple SELECT query from within Coldfusion page. When I list all query result within a &lt;cfloop&gt; construct, I got this error:&lt;br /&gt;&lt;br /&gt;"ByteArray objects cannot be converted to strings."&lt;br /&gt;&lt;br /&gt;when the variables #address# that contains the value of "address" column is processed. My first response to it was to look around and see what ByteArray object is in Coldfusion. Trying with no luck, I then thought it must have something to do with typecasting. Simply enclosing #address# variable as an argument of ToString function, like this one&lt;br /&gt;&lt;br /&gt;#ToString(address)#&lt;br /&gt;&lt;br /&gt;would do the trick.&lt;/cfloop&gt;&lt;/cfquery&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/37830923-116593668327168126?l=it-helpdesk.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://it-helpdesk.blogspot.com/feeds/116593668327168126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=37830923&amp;postID=116593668327168126' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/116593668327168126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37830923/posts/default/116593668327168126'/><link rel='alternate' type='text/html' href='http://it-helpdesk.blogspot.com/2006/12/heres-situation.html' title='ByteArray objects cannot be converted to strings'/><author><name>wahyu adi setyanto</name><uri>https://profiles.google.com/117426353308080335465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-i0pjGMNplCM/AAAAAAAAAAI/AAAAAAAAACI/_g66sGQV1Hk/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry></feed>
