[Mysql] 2.Mysql 5.7 Install (Windows)
http://dev.mysql.com/downloads/mysql/ 下載地址 , 在下拉框中選擇相應的版本
windows 下直接雙擊下載檔案安裝
直接上圖吧
本地連線測試一下 .
E:\mysql\bin>mysql -h 172.16.20.31 -u root -p
Enter password: *****
ERROR 1130 (HY000): Host '192.168.111.112' is not allowed to connect to this MySQL server
在 server 短執行如下動作:
Enter password: *****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 14
Server version: 5.7.14-log MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql
Database changed
mysql> select user,host from user;
+-----------+-----------+
| user | host |
+-----------+-----------+
| mysql.sys | localhost |
| root | localhost |
+-----------+-----------+
2 rows in set (0.00 sec)
root 使用者只允許在 127.0.0.1 和 localhost 上進行連線,而不允許使用本機在區域網中的 ip 進行連線
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.111.112' IDENTIFIED BY 'mysql' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.02 sec)
mysql>
重新連線生效 ,
E:\mysql\bin>mysql -h 172.16.20.31 -u root -pmysql
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.7.14-log MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sakila |
| sys |
| world |
+--------------------+
6 rows in set (0.01 sec)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2124675/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Install MySQL 5.7 in the DockerMySqlDocker
- yum install mysql5.7MySql
- MySQL 5.7 mysql_install_db工具介紹MySql
- Mysql 5.7.22 install for windowsMySqlWindows
- Windows安裝MySQL5.7教程WindowsMySql
- [Mysql] 1.Mysql 5.7 綠色安裝(windows)MySqlWindows
- windows安裝及配置mysql5.7WindowsMySql
- windows同時安裝 5.7 8.0 mysqlWindowsMySql
- 2018面試——2.Mysql專題面試MySql
- 安裝MySQL5.7報錯:The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed.MySqlServerAI
- MySQL5.7審計功能windows系統MySqlWindows
- Windows下Mysql5.6升級到5.7WindowsMySql
- windows10 MySQL5.7升級至MySQL8.0WindowsMySql
- MySQL5.7 windows二進位制安裝MySqlWindows
- 【MySQL】MySQL 5.7 初探MySql
- Windows系統安裝MySQL5.7簡易教程WindowsMySql
- windows下搭建webserver(apache2.4+mysql5.7+php5.6)WindowsWebServerApacheMySqlPHP
- Mysql 5.7 免安裝版windows安裝完整教程MySqlWindows
- Windows平臺下安裝與配置MySQL5.7WindowsMySql
- mysql5.7 for windows二進位制安裝及配置MySqlWindows
- 基於Windows的MySQL5.7本地升級WindowsMySql
- Mysql5.7 windows免安裝版本 初始化配置MySqlWindows
- windows 7 vs 2013編譯與安裝MySQL 5.7Windows編譯MySql
- install mysql on centosMySqlCentOS
- MySQL 5.7新特性MySql
- 使用Docker Mysql 5.7DockerMySql
- Docker 部署 MySQL 5.7DockerMySql
- MySQL 5.7 SYS SCHEMAMySql
- 【Mysql】mysql閃回flashback-5.7MySql
- install mysql from sourceMySql
- MySQL MMM Install DeployMySql
- MySQL 5.7的角色功能MySql
- MySQL 5.7 叢集搭建MySql
- Mysql 5.7 MHA 高可用MySql
- MySQL:5.6 升級 5.7MySql
- Docker 安裝 Mysql 5.7DockerMySql
- MySQL 5.7 InnoDB Tablespace EncryptionMySql
- MySQL5.7 多例項MySql