麒麟 qt 使用mysql_龙芯服务器搭建数据库和QT应用系统实战——QtCreator+神通数据库+中标麒麟操作系统...

本文介绍了如何在中标麒麟操作系统上使用QtCreator搭建数据库和QT应用系统。通过oscar_odbcconfig配置ODBC数据源,创建名为odsn的DSN,连接到本地服务器localhost的2003端口,数据库名osrdb,使用sysdba用户和szoscar55密码。配置成功后,数据源保存在/etc/odbc.ini文件中。
摘要由CSDN通过智能技术生成

# ./oscar_odbcconfig

--------------

Main Menu

0 Exit

1 View configuration and DSNs on this system

2 Create, edit, delete or test a DSN

Enter command> 2

--------------

Create, edit, delete or test a DSN

0 Return to main menu

1 Create an ODBC DSN

2 Edit an existing DSN

3 Delete an existing DSN

4 Test the connection for a DSN

Enter command> 1

Enter DSN name

> odsn

Enter Servername

> localhost

Enter Port

> 2003

Enter Username

> sysdba

Enter Password

> szoscar55

Enter Database

> osrdb

Keep this information?

[odsn]

Servername = localhost

Port = 2003

Database = osrdb

Username = sysdba

Password = szoscar55

Enter (y)es or (n)o > yes

Success!. Write file /etc/odbc.ini

--------------

Create, edit, delete or test a DSN

0 Return to main menu

1 Create an ODBC DSN

2 Edit an existing DSN

3 Delete an existing DSN

4 Test the connection for a DSN

Enter command> 0

--------------

Main Menu

0 Exit

1 View configuration and DSNs on this system

2 Create, edit, delete or test a DSN

Enter command> 0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值