在 Ubuntu 中安裝 MySQL5.7.** 最新版
阿新 • • 發佈:2018-11-09
相關連結:
在 CentOS 1804 中 使用 yum 安裝 MySQL 5.7 最新版
在不開啟 3306 埠的情況下,使用 Navicat 進項遠端連線(使用22埠)
在 CentOS 1804 中 安裝 MySQL 5.7.20 (或任意MySQL版本)
在 Ubuntu 中安裝 MySQL5.7.20(任意版本)
安裝說明:
以下內容是依據官方文件(https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
適用範圍:
-
Debian 7,8,9
-
Ubuntu 14.04,16.04,17.10,18.04
- 安裝MySQL:
[email protected]:~# apt-get install -y mysql-server
- 檢視使用者及隨機密碼等相關資訊:
[email protected]:~# cat /etc/mysql/debian.cnf # Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = debian-sys-maint password = y13FtH21wHrGJqAQ socket = /var/run/mysqld/mysqld.sock [mysql_upgrade] host = localhost user = debian-sys-maint password = y13FtH21wHrGJqAQ socket = /var/run/mysqld/mysqld.sock
- 登入MySQL:
不要問我密碼是什麼,我是不會告訴你上面一部已經查到了。[email protected]:~# mysql -u debian-sys-maint -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.23-0ubuntu0.18.04.1 (Ubuntu) Copyright (c) 2000, 2018, 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>
相關連結:
在 CentOS 1804 中 使用 yum 安裝 MySQL 5.7 最新版
在不開啟 3306 埠的情況下,使用 Navicat 進項遠端連線(使用22埠)