- win7:
官网下载解压mysql后,在bin目录执行,1
2
3
4
5
6D:\MySQL\Server\mysql-5.6.20-win32\bin>mysqld -install
Service successfully installed.
net start mysql
mysql -u root
update mysql.user set password=PASSWORD('root') where User='root' ;
flush privileges ;
停止mysql数据库服务:
1 | net stop mysql |
- ubuntu:参考链接:
1
2
3
4
5
6
7
8sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient-dev
sudo netstat -tap | grep mysql
mysql -u root -p
show databases;
use mysql ;
show tables ;
http://michael-wong.iteye.com/blog/976381