wiki:DespoinaLog/2010/04/23

Version 1 (modified by trac, 14 years ago) (diff)

--

Mysql installation with macports (macOS 10.6.3), Json libs in HVP pilot

Mysql installation problem in MacOS using macports (10.6.3)

  • Mysql socket problem @ macports installation problem solved :
    • ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)
      • solved by ".set the mysqld_safe socket path in a new MySQL configuration file. Create /opt/local/etc/mysql5/my.cnf, add the following to it, save, the try again.[mysqld_safe] socket = /tmp/mysql.sock

NOTE: If you've installed MacPort's PHP 5 you will probably need to tell PHP where the MySQL socket is. Edit your php.ini file located at /opt/local/etc/php.ini.

mysql.default_socket = /tmp/mysql.sock" DONE

related links

Install graphviz using Macports

JSON libs in HVP pilot

How to retrieve json data

Use json native available in several javascript libs