1.Import the public repository GPG keys:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc

 

 2.Register the SQL Server Ubuntu repository:

sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2022.list)"

 3.Run the following commands to install SQL Server:

sudo apt-get install -y mssql-server

 4. 配置SQL serve ,设置SA 账号密码和

sudo /opt/mssql/bin/mssql-conf setup

  

 5.查看sql server 运行状态

systemctl status mssql-server --no-pager

 6.如果有防火墙的话,请打开1433  端口。

 

7. 在Delphi 里面 连接数据库

 

 

 

 

 

posted on 2023-08-01 12:55  xalion  阅读(166)  评论(0编辑  收藏  举报