# Mac, XAMPP, MySQL & Liquibase \[Solved\]

**URL:** <https://forum.liquibase.org/t/mac-xampp-mysql-liquibase-solved/1188>\
**Category:** General Discussion\
**Created:** [March 28, 2011, 4:28am UTC](https://forum.liquibase.org/t/mac-xampp-mysql-liquibase-solved/1188 "2011-03-28T04:28:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nzmike](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@nzmike](https://forum.liquibase.org/u/nzmike)\
**Post date:** [March 28, 2011, 4:28am UTC](https://forum.liquibase.org/t/mac-xampp-mysql-liquibase-solved/1188/1 "2011-03-28T04:28:00Z")

</div>

Hi there,

I’m trying to use Liquibase from the command line in the setup&nbsp;described&nbsp;in the title.&nbsp;

A (sudo ps aux | grep mysql) command shows MySQL running on my local machine on port 3306:

nobody &nbsp; &nbsp; 432 &nbsp; 0.0 &nbsp;0.3 &nbsp; 639996 &nbsp;13696 &nbsp; ?? &nbsp;S &nbsp; &nbsp;10:10am &nbsp; 0:00.25 /Applications/XAMPP/xamppfiles/sbin/mysqld --basedir=/Applications/XAMPP/xamppfiles --datadir=/Applications/XAMPP/xamppfiles/var/mysql --user=nobody --log-error=/Applications/XAMPP/xamppfiles/var/mysql/XXXXX.local.err --pid-file=/Applications/XAMPP/xamppfiles/var/mysql/XXXXXn.local.pid --socket=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock --port=3306

Now I try running this command:

java -jar liquibase.jar --driver=com.mysql.jdbc.Driver &nbsp; &nbsp; &nbsp; --changeLogFile=scheme\_changes.xml &nbsp; &nbsp; &nbsp; --url=“jdbc:mysql://localhost/head\_portal” &nbsp; &nbsp; &nbsp; --username=web &nbsp; &nbsp; &nbsp; --password=web &nbsp; &nbsp; &nbsp; migrate

In a directory with the following files:

\*&nbsp;liquibase.jar

- scheme\_changes.xml

- mysql-connector-java-5.1.15-bin.jar&nbsp;

And I get the following errors:

Liquibase Update Failed: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

SEVERE 3/28/11 10:19 AM:liquibase: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

liquibase.exception.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

… 15 more

I can login to my MySQL database using the following command:

mysql -u web --password=web head\_portal

Can anyone see what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![nzmike](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@nzmike](https://forum.liquibase.org/u/nzmike)\
**Post date:** [March 28, 2011, 4:28am UTC](https://forum.liquibase.org/t/mac-xampp-mysql-liquibase-solved/1188/2 "2011-03-28T04:28:00Z")

</div>

I’ve fixed it!!

There’s a setting in MySQL that was blocking me from connection through TCP/IP.

To fix open the file&nbsp;/Applications/XAMPP/etc/my.cnf&nbsp;and comment out the line with:

skip-networking

Restart MySQL and all should be working.

Cheers,

Mike

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [March 28, 2011, 4:28am UTC](https://forum.liquibase.org/t/mac-xampp-mysql-liquibase-solved/1188/3 "2011-03-28T04:28:00Z")

</div>

Glad you found the issue. Thanks for the update.

Nathan
