sudo /usr/local/mysql/bin/mysqld_safe --user=mysql&
Showing posts with label database. Show all posts
Showing posts with label database. Show all posts
Monday, September 22, 2008
php based ORMs
Doctrine (available as symfony plugin)
Propell (currently used by symfony)
adodb_active_record:
http://phplens.com/lens/adodb/docs-active-record.htm
Labels:
database,
development,
object relational map,
ORM,
php
Install and setup mysql 5 with ports
MySql 5 Server
sudo port install mysql5 +server
sudo chown -R mysql:mysql /opt/local/var/db/mysql5
sudo -u mysql /opt/local/lib/mysql5/bin/mysql_install_db --user=mysql
ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock
Ruby’s gems installation
sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-include=/opt/local/include/mysql5 --with-mysql-lib=/opt/local/lib/mysql5 --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
Start MySql server
sudo -u mysql /opt/local/lib/mysql5/bin/mysqld_safe &
Stop MySql server
/opt/local/bin/mysqladmin5 -u root shutdown
It’s a good idea to create alias for you, here’s mine:
alias mysql_start='sudo -u mysql /opt/local/bin/mysqld_safe5 &'
alias mysql_stop='/opt/local/bin/mysqladmin5 -u root shutdown'
And remeber: mysql.socks lives on /opt/local/var/run/mysql5 as mysqld.socks
/opt/local/var/run/mysql5/mysqld.sock
Labels:
command line,
database,
development,
mysql,
ports,
sysadmin,
system administration
Subscribe to:
Posts (Atom)
