{"id":429,"date":"2008-02-01T13:43:54","date_gmt":"2008-02-01T17:43:54","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=429"},"modified":"2011-12-17T12:25:34","modified_gmt":"2011-12-17T16:25:34","slug":"code-notes","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2008\/02\/code-notes\/","title":{"rendered":"Code Notes"},"content":{"rendered":"<p>Playing with MySql and the MailArchive Performance Fix.<\/p>\n<p><!--more--><br \/>\ngetSummarizableReference<br \/>\ngetSummarizableReference<br \/>\ndbReadLock<br \/>\nudhcp-macvpn-972:~ csev$ mysql -u root<br \/>\nWelcome to the MySQL monitor.  Commands end with ; or \\g.<br \/>\nYour MySQL connection id is 3 to server version: 5.0.20-max<br \/>\nType &#8216;help;&#8217; or &#8216;\\h&#8217; for help. Type &#8216;\\c&#8217; to clear the buffer.<br \/>\nmysql> create database sakai default character set utf8;<br \/>\nQuery OK, 1 row affected (0.00 sec)<br \/>\nmysql> grant all on sakai.* to sakaiuser@&#8217;localhost&#8217; identified by &#8216;sakaipassword&#8217;;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<br \/>\nmysql> grant all on sakai.* to sakaiuser@&#8217;127.0.0.1&#8242; identified by &#8216;sakaipassword&#8217;;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<br \/>\nmysql><br \/>\nhttp:\/\/confluence.sakaiproject.org\/confluence\/display\/DOC\/Install+Guide+-+DB+%282.4%29#InstallGuide-DB%282.4%29-create<br \/>\nJust add this:<br \/>\nhibernate.dialect=org.hibernate.dialect.MySQLDialect<br \/>\nvendor@org.sakaiproject.db.api.SqlService=mysql<br \/>\ndriverClassName@javax.sql.BaseDataSource=com.mysql.jdbc.Driver<br \/>\nurl@javax.sql.BaseDataSource=jdbc:mysql:\/\/localhost:3306\/sakai?useUnicode=true&#038;characterEncoding=UTF-8<br \/>\nusername@javax.sql.BaseDataSource=sakaiuser<br \/>\npassword@javax.sql.BaseDataSource=sakaipassword<br \/>\nvalidationQuery@javax.sql.BaseDataSource=show variables like &#8216;version&#8217;<br \/>\ndefaultTransactionIsolationString@javax.sql.BaseDataSource=TRANSACTION_READ_COMMITTED<br \/>\ncp ~\/dev\/keepzips\/mysql-connector-java-3.1.11\/mysql-connector-java-3.1.11-bin.jar ~\/dev\/jakarta-tomcat-5.5.9\/common\/lib\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Playing with MySql and the MailArchive Performance Fix.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":2538,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/429\/revisions\/2538"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}