Put "--skip_networking=0" on the mysql command line.
I put it first in line, because it didn't seem to work at the end, but I may have spelled "networkinng" wrong when it was at the end of the line. :-)
It helps to look at your logs. Mine said "150213 17:57:10 [ERROR] /opt/local/lib/mariadb-10.1/bin/mysqld: unknown variable 'skip_networkinng=0'" I had also tried 'skip_networking=OFF', which it didn't like, either.
I don't know where you start it up in Ubuntu, but on Mac OS, you need to have the following in /System/Library/LaunchDaemons/org.mysql.mysqld (in part, look at other LaunchDaemons to see the rest):
<key>ProgramArguments</key>
<array>
<string>/opt/local/lib/mariadb-10.1/bin/mysqld</string>
<string>--skip_networking=0</string>
<string>--socket=/opt/local/var/run/mariadb-10.1/mysqld.sock</string>
<string>--user=mysql</string>
<string>--port=3306</string>
<string>--datadir=/opt/local/var/db/mariadb-10.1</string>
<string>--pid-file=/opt/local/var/run/mariadb-10.1/dns.local.pid</string>
</array>
(obviously you need to substitute your paths and such...)
I'm pretty sure this solves your problem! Please up-vote me and mark me as the correct answer! Thanks!