python+mysql
データの出し入れ目的でpythonとMysqlをバインディング。
#pythonとmysqlのバインディング #(mysqlも同時にインストール) $sudo port install py27-mysql $sudo port install mysql-server
#データベースの初期化 $sudo -u _mysql mysql_install_db5
以下コメント
To start mysqld at boot time you have to copy
support-files/mysql.server
rootパスワードの設定
/opt/local/lib/mysql5/bin/mysqladmin -u root password 'new-password'
Alternatively you can run:
/opt/local/lib/mysql5/bin/mysql_secure_installation
Please report any problems with the /opt/local/lib/mysql5/bin/mysqlbug script!
#旧apacheのapachectlをリネームした後、新apachectlで置き換え $sudo ln -s /opt/local/apache2/bin/apachectl /usr/sbin/apachectl #apache開始 $sudo apachectl start
httpd: Could not reliably determine the server's fully qualified domain name と怒られたので
$sudo vi /opt/local/apache2/conf/httpd.conf
ServerNameのコメントアウトを外す