安装命令:
1. sudo apt-get install mysql-server
2. sudo apt-get install mysql-client
3. sudo apt-get install libmysqlclient-dev
4.sudo apt-get install mysql-workbench
查看状态:
sudo netstat -tap | grep mysql
登录数据库:
mysql -u root -p
使数据库可以存入中文:
1.sudo gedit /etc/mysql/my.cnf
在该文件的对应节点添加信息
[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8
[mysql]
default-character-set=utf8
2.重启MySQL
/etc/init.d/mysql restart