当前位置:网站首页>Windows8.1 64 installed by mysql5.7.27
Windows8.1 64 installed by mysql5.7.27
2022-06-22 16:43:00 【MarshalEagle】
1、 Extract the installation package to the specified directory .
2、 Set the environment variable , stay path Item add mysql Of bin route . for example :E:\database\mysql-5.7.27-winx64\bin;
3、 stay E:\database\mysql-5.7.27-winx64\bin Create under directory my.ini file , Fill in the following :

[mysql] # Set up mysql Client default character set default-character-set=utf8 [mysqld] # Set up 7716 port port = 7716 # Set up mysql Installation directory basedir=E:\database\mysql-5.7.27-winx64\bin # Set up mysql Database data storage directory datadir=E:\database\mysql-5.7.27-winx64\bin\data # Maximum connections allowed max_connections=1000 # The character set used by the server defaults to 8 Bit coded latin1 Character set character-set-server=utf8 # The default storage engine that will be used when creating a new table default-storage-engine=INNODB

4、 Initialize database .
Run with administrator privileges cmd, perform :mysqld --initialize-insecure --user=mysql.
If there is a mistake , take data Delete the folder and execute again .
5、 Run with administrator privileges cmd, adopt cmd Order to enter mysql Of bin In the folder , Enter the command :“mysqld –install”, appear “service successfully installed” Indicates successful installation .
6、 start-up MySql. Input “net start mysql” start-up MySQL.
7、 Sign in mysql. Input “mysql –u root -p” Sign in MySQL, Enter password... Appears , Just press enter .
8、 modify root password
mysql>use mysql;
mysql>update user set authentication_string = password(' New password '),password_last_changed=now() where user='root';mysql>use mysql;
mysql>flush privileges;9、 Create a new user and assign permissions .
mysql>CREATE USER ' user name '@'%' IDENTIFIED BY ' password ';
mysql>GRANT ALL ON *.* TO ' user name '@'%';
-----------------------------------------------------------------------------------------------------------------------------------------
Forgotten password , Recharge password :
edit my.cnf Allow blank password to log in
1 [[email protected] ~]# vi /etc/my.cnf 2 # stay [mysqld] Add a line next 3 skip-grant-tables=1
Restart Mysql service
1 [[email protected] ~]# systemctl restart mysqld.service
Use Root Log in to the database 、 Use mysql database 、 modify root password 、 Exit database
1 [[email protected] ~]# mysql -u root 2 mysql> use mysql; 3 mysql> update user set authentication_string = password(' New password '),password_last_changed=now() where user='root'; 4 mysql> flush privileges;
Open again my.cnf, take skip-grant-tables=1 Delete , Save and exit
1 [[email protected] ~]# vi /etc/my.cnf 2 # Delete skip-grant-tables=1
restart Mysql service
1 [[email protected] ~]# systemctl restart mysqld.service
边栏推荐
- Spark性能调优之道——解决Spark数据倾斜(Data Skew)的N种姿势
- MYSQL 存储过程异常处理 报错 错误代码: 1337
- oracle分库分表
- for.. of vs. for.. In statement
- mysql 字符串字段转浮点型字段
- MYSQL_ERRNO : 1292 Truncated incorrect date value At add_num :1
- Lecture 6 of slam Lecture 14 -- nonlinear optimization
- 【微信小程序自定义底部tabbar】
- [wechat applet custom bottom tabbar]
- scala之闭包函数浅知
猜你喜欢
![[C language] deeply analyze the relationship between pointer and array](/img/f3/432eeee17034033361e05dde67aac3.jpg)
[C language] deeply analyze the relationship between pointer and array

如何为政企移动办公加上一道“安全锁”?

【微信小程序自定义底部tabbar】

Smart forms-014 in SAP ABAP

SAP ABAP BAPI-016

图计算Hama-BSP模型的运行流程

SAP ABAP data types, operators and editors-02

Learning about ABAP program tuning (IV) loop where key

Machine learning notes - Hagrid - Introduction to gesture recognition image data set

浙江创投圈的“半壁江山”,还得是国资
随机推荐
大话局部性原理
【游标的嵌套】mysql存储过程游标的嵌套
[C language] deeply analyze the relationship between pointer and array
SAP ABAP data types, operators and editors-02
Unable to connect after win10 WiFi is disconnected
Make the code elegant (learn debugging + code style)
面试知识点
jsp学习之(三)--------- jsp隐式对象
NiO uses writable events to handle the situation of one-time write incompleteness
User exit and customer exit in SAP ABAP -015
Machine learning notes - Hagrid - Introduction to gesture recognition image data set
nio服务多线程版本
CUMT学习日记——数字图像处理考试速成笔记
接口幂等性设计
调用cmd 进程通信
Oracle database and table
IO模型的5中模式
Implementing factory mode using enumeration
nio编程service
【心理学】情感心理学-当代思想和传统思想的碰撞(本篇文章将不定期持续更新)