1)在公司安装mysql没遇到问题;但在家里安装遇到了问题,安装完成后没有反映,后来发现只是安装了程序,并没有安装服务。
2)安装完程序后(win7 32位),运行mysql:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'
2)在bin下执行:mysqld --install;然后再服务看到mysql服务,启动后OK.
3)修改密码:update user set password=password('xxxx') where user='root';
4)别忘记:flush privileges;
5)创建用户 grant select on 数据库.* to 用户名@登录主机 identified by “密码”