ubuntu 卸载sql_在Ubuntu上卸载SQL Server

ubuntu 卸载sql We learned to install SQL Server 2019 installation on Ubuntu without a Docker Container in one of my previous articles, but we might also get a request to uninstall SQL Server running ...
摘要由CSDN通过智能技术生成

ubuntu 卸载sql

We learned to install SQL Server 2019 installation on Ubuntu without a Docker Container in one of my previous articles, but we might also get a request to uninstall SQL Server running on Ubuntu as well. Both the installation and the uninstallation of SQL Server is different in Linux than of Windows OS. In windows, we can remove or uninstall any program using the add or remove programs feature. In Ubuntu, We need to run the commands in order to uninstall the programs. However, before performing uninstallation, we need to take care of the below point.

在我之前的一篇文章中,我们学会了在没有Docker容器的情况下在Ubuntu上安装SQL Server 2019安装 ,但是我们也可能会收到卸载在Ubuntu上运行SQL Server的请求。 在Linux和Windows OS中,SQL Server的安装和卸载都不同。 在Windows中,我们可以使用“添加或删除程序”功能删除或卸载任何程序。 在Ubuntu中,我们需要运行命令以卸载程序。 但是,在执行卸载之前,我们需要注意以下几点。

  • SQL Server Databases backups: We cannot revert back once we have uninstalled SQL Server. Therefore, while planning uninstallation, we should carefully look at the databases and see if we require them on a later date. If yes, take a full database backup and move those backup files to a separate location. You can take database backup from SSMS, Azure data studio or the command line tools like a normal database in SQL Server. We should not keep the database backups under the default directory (/var/opt/mssql/data) because this will be removed as part of clean uninstallation of SQL Server.
  • SQL Server数据库备份 :卸载SQL Server后,我们将无法还原。 因此,在计划卸载时,我们应该仔细查看数据库,看看以后是否需要它们。 如果是,请执行完整的数据库备份,然后将这些备份文件移动到单独的位置。 您可以从SSMS,Azure数据工作室或命令行工具(如SQL Server中的普通数据库)进行数据库备份。 我们不应该将数据库备份保留在默认目录(/ var / opt / mssql / data)下,因为这将作为SQL Server干净卸载的一部分而被删除。

在Ubuntu上卸载SQL Server <

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值