https://github.com/emalherbi-zz/install-sqlserver-ubuntu
Quickstart: Install SQL Server and create a database on Ubuntu
https://github.com/emalherbi-zz/install-sqlserver-ubuntu
install linux sqlserver ubuntu
Last synced: about 2 months ago
JSON representation
Quickstart: Install SQL Server and create a database on Ubuntu
- Host: GitHub
- URL: https://github.com/emalherbi-zz/install-sqlserver-ubuntu
- Owner: emalherbi-zz
- Created: 2018-04-19T11:48:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T12:00:47.000Z (about 5 years ago)
- Last Synced: 2025-01-17T19:55:16.883Z (over 1 year ago)
- Topics: install, linux, sqlserver, ubuntu
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install SQL Server Ubuntu
Quickstart: Install SQL Server and create a database on Ubuntu.
## Install
```bash
sudo chmod +x install.sh
bash install.sh
```
## Test connect locally
* Please, after install close the terminal and open again.
```bash
sqlcmd -S localhost -U SA -P ''
```
```sql
SELECT Name from sys.Databases
GO
```
## Restore a database
```bash
chmod -R 777 /var/opt/mssql/data/
```
```bash
mv ~/Downloads/DBTEST.bk2 /var/opt/mssql/data/
```
```bash
sqlcmd -S localhost -U SA -P '' -Q "RESTORE DATABASE DBTEST FROM DISK = N'/var/opt/mssql/data/DBTEST.bk2' WITH RECOVERY, MOVE N'DBTEST_DATA' TO N'/var/opt/mssql/data/DBTEST_DATA.MDF', MOVE N'DBTEST_LOG' TO N'/var/opt/mssql/data/DBTEST_LOG.LDF'"
```
## Install database tool
Free multi-platform database tool for developers, SQL programmers, database administrators and analysts. Supports all popular databases: MySQL, PostgreSQL, MariaDB, SQLite, Oracle, DB2, SQL Server, Sybase, MS Access, Teradata, Firebird, Derby, etc.
Download: [DBeaver](https://dbeaver.jkiss.org/)
> Linux Debian package 64 bit or
> Linux Debian package 32 bit