[Yanel-commits] rev 50269 - public/yanel/trunk/src/realms/yanel-website/content

michi at wyona.com michi at wyona.com
Tue Jun 8 11:12:07 CEST 2010


Author: michi
Date: 2010-06-08 11:12:07 +0200 (Tue, 08 Jun 2010)
New Revision: 50269

Modified:
   public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46
Log:
note about installing MySQL on Mac OS X

Modified: public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46	2010-06-08 09:04:44 UTC (rev 50268)
+++ public/yanel/trunk/src/realms/yanel-website/content/db7ccbd3-cb9b-402c-b57f-2f9a19828d46	2010-06-08 09:12:07 UTC (rev 50269)
@@ -28,11 +28,32 @@
 <li>/Library/PostgreSQL/8.4/bin/pg_ctl -D /Library/PostgreSQL/8.4/data stop</li>
 <li>/Library/PostgreSQL/8.4/bin/pg_ctl -D /Library/PostgreSQL/8.4/data start</li>
 </ul>
+<h3>Install MySQL on Mac OS X (Snow Leopard)</h3>
+<ul>
+<li><a href="http://dev.mysql.com/downloads/mysql/">http://dev.mysql.com/downloads/mysql/</a> 
+<ul>
+<li>Download Community Server DMG Archive: mysql-5.1.47-osx10.6-x86_64.dmg</li>
+</ul>
+</li>
+<li>Open DMG 
+<ul>
+<li>Double-click mysql-5.1.47-osx10.6-x86_64.pkg</li>
+<li>Will be installed to /usr/local/...</li>
+<li>Double-click MySQLStartupItem.pkg</li>
+<li>Will be installed to /Library/StartupItems/...</li>
+</ul>
+</li>
+<li>sudo /Library/StartupItems/MySQLCOM/MySQLCOM start</li>
+<li>sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop</li>
+<li>In order to disable automatic startup during system boot: vi /etc/hostconfig (set MYSQLCOM=-YES- to NO)</li>
+<li>Test mysql: /usr/local/mysql/bin/mysqlshow (also see <a href="http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html">http://dev.mysql.com/doc/refman/5.0/en/unix-post-installation.html</a>)</li>
+<li>Display version: /usr/local/mysql/bin/mysqladmin version</li>
+</ul>
 <h3>Import KonaKart sample data into PostgreSQL</h3>
 <ul>
 <li>Download KonaKart, e.g. the ZIP version of the <a href="http://www.konakart.com/downloads/community_edition">community edition</a></li>
 <li>Also see the <a href="http://www.konakart.com/docs/manualInstallation.html">KonaKart manual installation FAQ</a> (Previous: <a href="http://www.konakart.com/manual_installationfaq.php">KonaKart manual installation FAQ<br /></a>)</li>
-<li>Create a KonaKart database within PostgreSQL:                 
+<li>Create a KonaKart database within PostgreSQL:                   
 <ul>
 <li>sudo bash</li>
 <li>/etc/init.d/postgresql-8.2 start</li>
@@ -41,9 +62,9 @@
 <li>createdb -U postgres --encoding unicode konakart</li>
 </ul>
 </li>
-<li>Import the sample data:                 
+<li>Import the sample data:                   
 <ul>
-<li>Depending on what web-server port you want to run KonaKart, you might have to change the port within the KonaKart sample data:                
+<li>Depending on what web-server port you want to run KonaKart, you might have to change the port within the KonaKart sample data:                  
 <ul>
 <li>grep 8780 konakart-community/database/PostgreSQL/konakart_demo.sql</li>
 <li>Replace the port number 8780 for example by 8080: vi: 1,$s/8780/8080/g</li>
@@ -52,7 +73,7 @@
 </ul>
 </li>
 <li>Import the data: psql -U postgres -d konakart -f konakart-community/database/PostgreSQL/konakart_demo.sql</li>
-<li>Test the data:                
+<li>Test the data:                  
 <ul>
 <li>psql -U postgres -d konakart</li>
 <li>select * from products;</li>
@@ -65,7 +86,7 @@
 </ul>
 <h3>Configure the database connection within KonaKart and PostgreSQL<br /></h3>
 <ul>
-<li>webapps/konakart/WEB-INF/classes/konakart.properties            
+<li>webapps/konakart/WEB-INF/classes/konakart.properties              
 <ul>
 <li>torque.database.store1.adapter&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; = postgresql</li>
 <li>torque.dsfactory.store1.connection.driver&#160;&#160; = org.postgresql.Driver</li>
@@ -75,14 +96,14 @@
 </ul>
 </li>
 <li>webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties</li>
-<li>Make sure that postgreSQL is listening              
+<li>Make sure that postgreSQL is listening                
 <ul>
 <li>vi /etc/postgresql/8.2/main/postgresql.conf</li>
 <li>listen_addresses = 'localhost,127.0.0.1'</li>
 <li>netstat -nt -l | grep 5432</li>
 </ul>
 </li>
-<li>Make sure that you can connect without password from localhost:             
+<li>Make sure that you can connect without password from localhost:               
 <ul>
 <li>vi /etc/postgresql/8.2/main/pg_hba.conf</li>
 <li>host&#160;&#160;&#160; all&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; all&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 127.0.0.1/32&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; trust</li>
@@ -103,7 +124,7 @@
 <ul>
 <li>Download the Linux installer: <a href="http://www.konakart.com/downloads/community_edition">http://www.konakart.com/downloads/community_edition</a></li>
 <li>./konakart-linux-install -S -DInstallationDir /home/wyona/konakart -DDatabaseType postgresql -DDatabaseUrl jdbc:postgresql://localhost:5432/konakart -DDatabaseDriver org.postgresql.Driver -DDatabaseUsername postgres</li>
-<li>Startup: It seems that the silent installer starts Tomcat automatically on port 8780     
+<li>Startup: It seems that the silent installer starts Tomcat automatically on port 8780       
 <ul>
 <li>netstat -nt -l | grep </li>
 <li>http://195.226.6.73:8780</li>
@@ -128,7 +149,7 @@
 </ul>
 <h3>Misc</h3>
 <ul>
-<li>Backup and restore data: <a href="http://www.postgresql.org/docs/8.1/static/backup.html">http://www.postgresql.org/docs/8.1/static/backup.html</a>
+<li>Backup and restore data: <a href="http://www.postgresql.org/docs/8.1/static/backup.html">http://www.postgresql.org/docs/8.1/static/backup.html</a> 
 <ul>
 <li>sudo bash</li>
 <li>su - postgres</li>



More information about the Yanel-commits mailing list