<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "0.9.9 on OS X MySQL "Communications link failure""]]></title>
		<link>http://www.sqlpower.ca/forum/posts/list/2.page</link>
		<description><![CDATA[Latest messages posted in the topic "0.9.9 on OS X MySQL "Communications link failure""]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>0.9.9 on OS X MySQL &quot;Communications link failure&quot;</title>
				<description><![CDATA[ I'm running MAMP on Mac OS X Tiger and trying to connect PowerArchitect to  it's MySQL database. I suspect it may be the socket path that needs to be changed. Any ideas of what I need to do and how?<br /> <br /> [code]<br /> ca.sqlpower.architect.ArchitectException: Couldn't connect to database: Communications link failure<br /> <br /> Last packet sent to the server was 0 ms ago. (cause: com.mysql.jdbc.CommunicationsException: Communications link failure<br /> <br /> Last packet sent to the server was 0 ms ago.)<br /> 	at ca.sqlpower.architect.SQLDatabase.getConnection(SQLDatabase.java:559)<br /> 	at ca.sqlpower.architect.SQLDatabase.populate(SQLDatabase.java:112)<br /> 	at ca.sqlpower.architect.SQLObject.getChildCount(SQLObject.java:212)<br /> 	at ca.sqlpower.architect.swingui.DBTreeModel.getChildCount(DBTreeModel.java:146)<br /> 	at javax.swing.plaf.basic.BasicTreeUI.paintExpandControl(BasicTreeUI.java:1365)<br /> 	at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1192)<br /> 	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)<br /> 	at javax.swing.JComponent.paintComponent(JComponent.java:743)<br /> 	at javax.swing.JComponent.paint(JComponent.java:1006)<br /> 	at javax.swing.JComponent._paintImmediately(JComponent.java:4890)<br /> 	at javax.swing.JComponent.paintImmediately(JComponent.java:4676)<br /> 	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)<br /> 	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)<br /> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)<br /> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)<br /> 	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)<br /> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)<br /> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)<br /> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)<br /> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)<br /> Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure<br /> <br /> Last packet sent to the server was 0 ms ago.<br /> 	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1070)<br /> 	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2104)<br /> 	at com.mysql.jdbc.ConnectionImpl.&lt;init&gt;(ConnectionImpl.java:729)<br /> 	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:298)<br /> 	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:283)<br /> 	at ca.sqlpower.sql.SPDataSource.createConnection(SPDataSource.java:420)<br /> 	at ca.sqlpower.sql.SPDSConnectionFactory.createConnection(SPDSConnectionFactory.java:55)<br /> 	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)<br /> 	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)<br /> 	at ca.sqlpower.architect.SQLDatabase.getConnection(SQLDatabase.java:557)<br /> 	... 19 more<br /> Caused by: java.net.ConnectException: Connection refused<br /> 	at java.net.PlainSocketImpl.socketConnect(Native Method)<br /> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<br /> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<br /> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)<br /> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430)<br /> 	at java.net.Socket.connect(Socket.java:520)<br /> 	at java.net.Socket.connect(Socket.java:470)<br /> 	at java.net.Socket.&lt;init&gt;(Socket.java:367)<br /> 	at java.net.Socket.&lt;init&gt;(Socket.java:209)<br /> 	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)<br /> 	at com.mysql.jdbc.MysqlIO.&lt;init&gt;(MysqlIO.java:276)<br /> 	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2027)<br /> 	... 27 more<br /> Root Cause:<br /> com.mysql.jdbc.CommunicationsException: Communications link failure<br /> <br /> Last packet sent to the server was 0 ms ago.<br /> 	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1070)<br /> 	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2104)<br /> 	at com.mysql.jdbc.ConnectionImpl.&lt;init&gt;(ConnectionImpl.java:729)<br /> 	at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:298)<br /> 	at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:283)<br /> 	at ca.sqlpower.sql.SPDataSource.createConnection(SPDataSource.java:420)<br /> 	at ca.sqlpower.sql.SPDSConnectionFactory.createConnection(SPDSConnectionFactory.java:55)<br /> 	at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)<br /> 	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)<br /> 	at ca.sqlpower.architect.SQLDatabase.getConnection(SQLDatabase.java:557)<br /> 	at ca.sqlpower.architect.SQLDatabase.populate(SQLDatabase.java:112)<br /> 	at ca.sqlpower.architect.SQLObject.getChildCount(SQLObject.java:212)<br /> 	at ca.sqlpower.architect.swingui.DBTreeModel.getChildCount(DBTreeModel.java:146)<br /> 	at javax.swing.plaf.basic.BasicTreeUI.paintExpandControl(BasicTreeUI.java:1365)<br /> 	at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1192)<br /> 	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)<br /> 	at javax.swing.JComponent.paintComponent(JComponent.java:743)<br /> 	at javax.swing.JComponent.paint(JComponent.java:1006)<br /> 	at javax.swing.JComponent._paintImmediately(JComponent.java:4890)<br /> 	at javax.swing.JComponent.paintImmediately(JComponent.java:4676)<br /> 	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)<br /> 	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)<br /> 	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)<br /> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)<br /> 	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)<br /> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)<br /> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)<br /> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)<br /> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)<br /> Caused by: java.net.ConnectException: Connection refused<br /> 	at java.net.PlainSocketImpl.socketConnect(Native Method)<br /> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)<br /> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)<br /> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)<br /> 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:430)<br /> 	at java.net.Socket.connect(Socket.java:520)<br /> 	at java.net.Socket.connect(Socket.java:470)<br /> 	at java.net.Socket.&lt;init&gt;(Socket.java:367)<br /> 	at java.net.Socket.&lt;init&gt;(Socket.java:209)<br /> 	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)<br /> 	at com.mysql.jdbc.MysqlIO.&lt;init&gt;(MysqlIO.java:276)<br /> 	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2027)<br /> 	... 27 more<br />  [/code]]]></description>
				<guid isPermaLink="true">http://www.sqlpower.ca/forum/posts/preList/1841/2491.page</guid>
				<link>http://www.sqlpower.ca/forum/posts/preList/1841/2491.page</link>
				<pubDate><![CDATA[Thu, 31 Jan 2008 16:38:06]]> GMT</pubDate>
				<author><![CDATA[ Shawn]]></author>
			</item>
			<item>
				<title>Re:0.9.9 on OS X MySQL &quot;Communications link failure&quot;</title>
				<description><![CDATA[ Hi!<br /> <br /> It looks like your MySQL is not accepting connections on the TCP port you're trying to connect on. The default port for MySQL is 3306.<br /> <br /> You could try this from a terminal window to test that MySQL is accepting connections. Assuming the database is on the local machine, the command to try would be telnet localhost 3306.<br /> <br /> Here's what a failure would look like:<br /> <br /> $ telnet localhost 3306<br /> Trying ::1...<br /> telnet: connect to address ::1: Connection refused<br /> Trying 127.0.0.1...<br /> telnet: connect to address 127.0.0.1: Connection refused<br /> telnet: Unable to connect to remote host<br /> <br /> Here's what success looks like:<br /> <br /> $ telnet localhost 3306<br /> Trying ::1...<br /> Connected to localhost.<br /> Escape character is '^]'.<br /> 4<br /> 5.0.459Ay`Uf%~,q:j,7nGW_Vs`Connection closed by foreign host.<br /> <br /> If you get the latter result, then there's probably something wrong with the connection config within the Architect. If you get the former, then you need to tell MySQL to accept connections from localhost on port 3306.<br /> <br /> -Jonathan]]></description>
				<guid isPermaLink="true">http://www.sqlpower.ca/forum/posts/preList/1841/2494.page</guid>
				<link>http://www.sqlpower.ca/forum/posts/preList/1841/2494.page</link>
				<pubDate><![CDATA[Fri, 1 Feb 2008 10:49:12]]> GMT</pubDate>
				<author><![CDATA[ Jonathan]]></author>
			</item>
			<item>
				<title>Re:0.9.9 on OS X MySQL &quot;Communications link failure&quot;</title>
				<description><![CDATA[ Awesome, thanks Jonathan! <br /> <br /> You were right about TCP port. I went into /etc/my.cnf and removed the "skip-networking" option. Works great now.<br /> <br /> BTW, thanks for adding the PDF Export I requested a while back! Product looks really promising!]]></description>
				<guid isPermaLink="true">http://www.sqlpower.ca/forum/posts/preList/1841/2496.page</guid>
				<link>http://www.sqlpower.ca/forum/posts/preList/1841/2496.page</link>
				<pubDate><![CDATA[Fri, 1 Feb 2008 14:39:37]]> GMT</pubDate>
				<author><![CDATA[ Shawn]]></author>
			</item>
			<item>
				<title>Re:0.9.9 on OS X MySQL &quot;Communications link failure&quot;</title>
				<description><![CDATA[ I had a similar problem while trying to import sql using ant's sql task. First I figured out to add -verbose to ant's command line. Then I got these exceptions. Then I found this forum post and I can't express how much I'm grateful for the solution. Indeed I use xampp and its security script asks to disable networking. At the time when I answered 'yes - disable' I had no idea I will not be able to connect from Java from localhost via tcp. <br /> Interestingly I have suspected the culprit  - connection refused/access denied. So I tried to connect from the ssh and it worked. Thank you for the telnet hint.]]></description>
				<guid isPermaLink="true">http://www.sqlpower.ca/forum/posts/preList/1841/2723.page</guid>
				<link>http://www.sqlpower.ca/forum/posts/preList/1841/2723.page</link>
				<pubDate><![CDATA[Sat, 12 Apr 2008 10:19:31]]> GMT</pubDate>
				<author><![CDATA[ geniot]]></author>
			</item>
			<item>
				<title>Re:0.9.9 on OS X MySQL &quot;Communications link failure&quot;</title>
				<description><![CDATA[ Glad we were able to help, geniot! Thanks for taking the time to let us know.<br /> <br /> -Jonathan]]></description>
				<guid isPermaLink="true">http://www.sqlpower.ca/forum/posts/preList/1841/2725.page</guid>
				<link>http://www.sqlpower.ca/forum/posts/preList/1841/2725.page</link>
				<pubDate><![CDATA[Mon, 14 Apr 2008 11:10:55]]> GMT</pubDate>
				<author><![CDATA[ Jonathan]]></author>
			</item>
	</channel>
</rss>
