{"id":104,"date":"2005-11-06T12:29:14","date_gmt":"2005-11-06T16:29:14","guid":{"rendered":"http:\/\/www.dr-chuck.com\/wordpress\/?p=104"},"modified":"2011-12-17T12:18:26","modified_gmt":"2011-12-17T16:18:26","slug":"chucks-mysql-notes","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2005\/11\/chucks-mysql-notes\/","title":{"rendered":"Chuck&#8217;s MySql Notes"},"content":{"rendered":"<p>This is just my own internal notes so I don&#8217;t have to keep them on my desktop&#8230;<\/p>\n<p><!--more--><br \/>\nsudo sh<br \/>\nsafe_mysqld &#038;<br \/>\nmysql<br \/>\ndrop database sakai;<br \/>\ncreate database sakai default character set utf8;<br \/>\ngrant all on sakai.* to sakaiuser@&#8217;localhost&#8217; identified by &#8216;sakaipassword&#8217;;<br \/>\ngrant all on sakai.* to sakaiuser@&#8217;127.0.0.1&#8242; identified by &#8216;sakaipassword&#8217;;<br \/>\nhttp:\/\/cvs.sakaiproject.org\/release\/2.0.1\/SourceInstallGuide.html#Database<br \/>\nEdit .\/kernel\/component\/src\/config\/org\/sakaiproject\/config\/sakai.properties<br \/>\n***** NEVER EVER CHECK THIS BACK IN *****<br \/>\nFix these lines a the top:<br \/>\njdbc.defaultTransactionIsolation=java.sql.Connection.TRANSACTION_READ_COMMITTED<br \/>\nhibernate.dialect=net.sf.hibernate.dialect.MySQLDialect<br \/>\nAdd these at the end<br \/>\nvendor@org.sakaiproject.service.framework.sql.SqlService=mysql<br \/>\ndriverClassName@javax.sql.BaseDataSource=com.mysql.jdbc.Driver<br \/>\nurl@javax.sql.BaseDataSource=jdbc:mysql:\/\/127.0.0.1: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=select 1 from DUAL<br \/>\nCompile and deploy sakai into Tomcat.<br \/>\nAdd the MySql connector<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\/<br \/>\nNOTE: When switching back and forth from mysql to hsql, make sure to deal with the jakarta-tomcat-5.5.9\/sakai\/sakai.properties file<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is just my own internal notes so I don&#8217;t have to keep them on my desktop&#8230;<\/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-104","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\/104","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=104"}],"version-history":[{"count":1,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":2184,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/104\/revisions\/2184"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}