Debian 10.1 安装MySQL 8

把下面7个.deb软件包放到指定目录,在该目录下执行如下安装命令: apt -y install ./mysql-common_8.0.18-1debian10_amd64.deb ./mysql-community-client-core_8.0.18-1debian10_amd64.deb ./mysql-community-client_8.0.18-1debian10_amd64.deb ./mysql-client_8.0.18-1debian10_amd64.deb ./mysql-community-server-core_8.0.18-1debian10_amd64.deb ./mysql-community-server_8.0.18-1debian10_amd64.deb ./mysql-server_8.0.18-1debian10_amd64.deb 安装过程中会弹出窗口提示设置MySQL的root帐户的登录密码 命令执行完后就安装好了,可用下面的命令查看数据库状态: systemctl status mysql 常用命令还有: systemctl start mysql systemctl stop mysql systemctl restart mysql

还要把mysql-connector-java-8.0.18.jar放到Tomcat的lib文件夹里,否则会出错。下载教程点击此处

Last updated