sudo apt-get install mysql-server mysql-client
sudo apt-get install sun-java6-jdk(安装出意外,sudo dpkg -P sun-java6-bin,然后重新安装)
sudo vi /etc/network/interfaces 配置网络
auto eth0
iface eth0 inet dhcp(static)
address 192.168.8.108
netmask 255.255.255.0
gateway 192.168.8.1
:x保存
sudo ifconfig eth0 down (up)关闭和启动
sudo /etc/init.d/networking restart
-----------------------------------
远程授权访问msyql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.8.108' IDENTIFIED BY '' WITH GRANT OPTION ;
etc/mysql/my.cnf注释掉 bind 127.0.0.1
重新启动mysql :sudo /etc/init.d/mysql restart
---------------------------------------------