table of Contents
MysSQL download and install win10 + Linux ask 0
Database visualization software
MysSQL download and install win10 + Linux ask 0
win10 download and install
Download: https://www.mysql.com/downloads/
Baidu network disk Download: https://pan.baidu.com/s/1zfwD9JjLVCj2JkoiDoxVww
Download completed:
Unzip Open:
Unpacked directory and not the my.ini file my.ini (new text file, the file type to the .ini) in this catalog to add, and write basic configuration:
Notes 1
my.ini configuration, the following content will directly copy the new my.ini file
[mysqld]
# 设置3306端口
port=3306
# 设置mysql的安装目录
basedir=C:\MySQL
# 设置mysql数据库的数据的存放目录
datadir=D:\mysqlData
# 允许最大连接数
max_connections=200
# 允许连接失败的次数。
max_connect_errors=10
# 服务端使用的字符集默认为utf8mb4
character-set-server=utf8mb4
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 默认使用“mysql_native_password”插件认证
#mysql_native_password
default_authentication_plugin=mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8mb4
[client]
# 设置mysql客户端连接服务端时默认使用的端口
port=3306
default-character-set=utf8mb4
After opening into the mysql bin directory
Command in the bin directory under the MySQL directory:
mysqld --initialize --console
note! [Note] [MY-010454] [server] generates a temporary password for the root @ localhost: & aD> j * e <a1 = i where root @ localhost: behind & aD> j * e <al = i is the initial password (excluding the first space). In the absence of change passwords to remember this password, subsequent logins need to use. Copy a password to save up !!!
- Installing MySQL MySQL service start service +
Install mysql service
Execute the following command:
mysqld --install [ service name] (service name may not change the default mysql)
mysqld --install
MySQL service is turned on:
net start mysql
Success
MySQL database service under Windows starts:
Under first unzip the file into the bin directory, run the command:
net start mysql
Close Services:
net stop mysql
Modify the database password
First enter the decompression directory bin: E: \ mysql-8.0.17-winx64 \ bin
mysql -u root -p
If prompted for a password the following error is not lost password right, look carefully re-enter.
ALTER USER 'root'@'localhost' IDENTIFIED BY '230612';
net start mysql 启动数据库服务
net stop mysql 关闭数据库服务
mysql -u root p密码: 进入数据库
exit; 退出数据库
将bin文件所在目录添加的系统路径中,就可以直接在cmd中找到安装的mysql
数据库可视化软件
去Navicat官网下一个(可以免费使用14天的!),一切默认安装即可
MySQL的服务已经开启了就直接打开的Navicat去连接
Linux下安装MySQL
参考链接:https://blog.csdn.net/qq_37350706/article/details/81707862