ubuntu16.04 安装sqlserver 2017

sqlserver 安装

 

https://docs.microsoft.com/zh-cn/sql/linux/quickstart-install-connect-ubuntu

 

ubuntu 16.04 安装 sql server 驱动

 

https://docs.microsoft.com/zh-cn/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server

 

 

sudo apt-get install unixodbc

 

 

 

sudo apt-get install unixodbc-dev

 

 

 

sudo su 
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
exit
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install msodbcsql=13.0.1.0-1 mssql-tools=14.0.2.0-1
sudo apt-get install unixodbc-dev-utf16 #this step is optional but recommended*
#Create symlinks for tools
ln -sfn /opt/mssql-tools/bin/sqlcmd-13.0.1.0 /usr/bin/sqlcmd 
ln -sfn /opt/mssql-tools/bin/bcp-13.0.1.0 /usr/bin/bcp

 

 

 

 --修改数据库字符集

  alter database DBName collate Chinese_PRC_CI_AS

获取更多帮主请关注小程序

 

 

 

 

 

你可能感兴趣的:(sqlserver)