Community Server

为Debian安装mysqlsh命令行

狂风中的少年 提交于 2019-11-26 13:51:38
问题 最近在使用mysql的文档存储方式,需要使用mysqlsh命令行,但是默认的Debian系统没有mysqlsh的安装源,所以只能自己添加apt安装源,对mysqlsh命令行进行安装。 解决 下载deb包 https://dev.mysql.com/downloads/repo/apt/ 安装依赖包 apt-get install lsb-release wget 安装deb包 dpkg -i mysql-apt-config_0.8.13-1_all.deb 安装mysqlsh 先进行更新准备: apt-get update 再进行安装: apt-get install mysql-shell 安装提示: MySQL APT Repo features MySQL Server along with a variety of MySQL components. You may select the appropriate product to choose the version that you wish to receive. Once you are satisfied with the configuration then select last option 'Ok' to save the configuration, then run 'apt-get

mysql docker 配置

萝らか妹 提交于 2019-11-26 09:49:15
安装   主机上的mysql服务是基于docker安装的,具体安装脚本如下: docker run --detach \ --restart always \ --publish 3306:3306 --name mysql \ --volume /data/mysql/logs:/logs \ --volume /data/mysql/data:/mysql_data \ -e MYSQL_ROOT_PASSWORD=123456 \ mysql:5.7.28 重启 docker restart mysql 关闭 docker stop mysql 卸载 docker rm mysql 访问 lwk@qwfys:~$ mysql -h cvm00.xtwj.com -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.28 MySQL Community Server (GPL) Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a