January 23, 2010

Ubuntu MySQL

1. Start MySQL server

sudo /etc/init.d/mysql start

2. Connect to MySQL database by entering the username and password

mysql -u root -p

3. Determine the IP address

ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2