时间:2021-07-01 10:21:17 帮助过:46人阅读
4.初始化命令:mysqld --initialize-insecure,会在解压文件下出现data文件夹
5.使用超级管理员打开cmd,切换到D:\mysql-5.7.11-winx64\bin目下输入命令:mysqld -install,当出现Service successfully installed表示MySQL服务已经安装了
6.输入mysql --console可以查看安装过程中的日志及时发现存在的错误
7.启动命令:net start mysql
8.重新切换到bin目录下,修改密码:输入mysql -u root -p然后回车默认无密码,然后输入
update mysql.user set authentication_string=password(‘root‘) where user=‘root‘ and Host = ‘localhost‘;
9.停止服务命令:net stop mysql
10.重新启动服务,输入mysql -u root -p ,输入修改后的密码:root ,至此可以结束了
11.上面my.ini中的红色字体是通过Navicat连接本地提示mysql Table ‘performance_schema.session_variables‘ doesn‘t exist错误,加上红色标记内容
重新启动mysql服务,Navicat也再次重启,在Navicat中连接本地发现成功连接
12.至此安装过程结束,遇到的问题耐心都可以解决的,心态很重要!!!
mysql安装过程以及遇到问题的解决方法
标签:解压方式 字符集 char init rac star color ODB ble