Unable to locate the program input point fegetound on the dynamic link library MSVCR120.dll

environment:

system environment Windows 10 64th
mysql version 5.7.19

1. The ever-changing download

Download page: https://dev.mysql.com/downloads/mysql/

Click the Download button to download the zip package to the local, decompress it (take my local decompression path is D:\db\mysql-5.7.19-winx64 as an example, the location can be customized)

2. Configure environment variables

Take my local decompression path as D:\db\mysql-5.7.19-winx64 as an example:

This Computer-->Right Click-->Properties-->Advanced System Settings-->Environment Variables-->System Variables-->Path-->Edit-->New-->Fill in "D:\db\mysql -5.7.19-winx64\bin"-->confirm

 

 

Third, configure the mysql configuration file

Create a new my.ini configuration file in the mysql decompression directory

The content is:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[mysql]
# 设置mysql客户端默认字符集
default-character- set =utf8
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=D: /db/mysql-5 .7.19-winx64
# 设置mysql数据库的数据的存放目录
datadir=D: /db/mysqldata
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character- set -server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB

Other configuration items are set according to their own needs, which are not explained here.

Fourth, configure the service and start

1. Run cmd as an administrator, and enter the bin directory under the decompression directory

2. Install mysql service

1
mysqld  install

3. Initialization:

1
mysqld --initialize

4. Turn on the service

net start mysql

5. Find the initial password

mysq在5.7版本以上为root用户默认生成了一个临时登录密码,该密码是生成在数据目录下的.err文件里的;在my.ini配置文件里我写的数据目录是:

1
datadir=D: /db/mysqldata

 所以找到该文件:

上面圈出的部分即为登录密码。

如果没有该文件,请用错误的密码尝试登录一次mysql

1
mysql -uroot -p<br>输入一个错误密码后再回来查看有没有sheng.err文件

6.修改初始密码

首先用默认初始密码登录root

1
mysql -uroot -p<br>输入默认密码

修改密码:

mysql> set password for 用户名@localhost = password('新密码'); 

mysql> set password for root@localhost = password('123456'); 

显示Ok后密码修改成功。


如果提示缺少.dll报错:

无法定位程序输入点fegetound于动态链接库MSVCR120.dll上


安装MYSQL途中提示 无法定位程序输入点fegetound于动态链接库MSVCR120.dll上  查看本地C:windos下 system32跟64都有这个MSVCR120.dll文件,从网上或者360上搜到微软运行库合计,然后安装安装完运行库后,问题解决。


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326846544&siteId=291194637