命令行控制启动和关闭:mysqld --console #这样启动ctrl+c即为关闭
启动:双击mysqld.exe即可 #此为后台启动
关闭:mysqladmin -uroot -proot shutdown #此为正常关闭
终止:taskkill /im mysqld.exe /f #此为暴力关闭
连接:mysql -u root -proot
设置密码:set password = password('root');
查看编码:SHOW VARIABLES LIKE '%character%';
修改编码:建立my.ini
1 [mysqld]
2 character_set_server = utf8
3 [mysqld_safe]
4 character_set_server = utf8
5 [mysql]
6 default-character-set = utf8
7 [mysql.server]
8 default-character-set = utf8
9 [client]
10 default-character-set = utf8