Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows安装mysql #15

Open
mkdir1 opened this issue Feb 27, 2016 · 0 comments
Open

windows安装mysql #15

mkdir1 opened this issue Feb 27, 2016 · 0 comments

Comments

@mkdir1
Copy link
Owner

mkdir1 commented Feb 27, 2016

windows安装msyql

下载

mysql-5.7.11-winx64这个版本下面解压后没有data文件夹,安装时会找不到
即:

mysqld -nt remove
mysqld -nt install
需要copy其它版本mysql-advanced-5.6.27-winx64下面的data文件夹

安装后

安装如果不出问题,就提示成功了.
启动:

net start mysql
即可,这里需要管理员运行cmd下进行

或者在service下面图形化操作,配置文件.cnf也在这里

配置root密码

第一次登录不需要密码,直接enter

mysql -uroot
进入之后
mysql -u root

  mysql> use mysql;
  mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';
  mysql> FLUSH PRIVILEGES;

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant