Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How vc 6 mysql uses interface c to access mysql

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how vc 6 mysql uses the c interface to access mysql, which has a certain reference value. Interested friends can refer to it. I hope you will learn a lot after reading this article. Let's take a look at it.

Not to mention the basic development, the following are the main problems that have arisen, and provide solutions:

1. C:mysqlshareindex?.conf not found

Some mysql struct information (size and offset):

Net: 292 0

Host: 4 296

Port: 4 400

Protocol_version: 4 412

Thread_id: 4 392

Affected_rows: 8 368

Packet_length: 4 396

Status: 4 512

Fields: 4 332

Field_alloc: 32 336

Free_me: 1 516

Options: 84 428

File'c mysqlsharecharsetsroom.conf' not found (Errcode: 2)

Character set'# 33'is not a compiled character set and is not specified in the

'crealmysqlsharecharsetsIndex 'file

Can't connect to the mysql server on port 3306!

Press any key to continue

This is mainly a problem with the character set. You need to set the character set of the connected database.

two。 Protocol error, unable to connect.

Modify and set the user table password to old_password ('dddd')

3. Chinese question

If (mysql_query (& myData, "set names gbk")) {

Fprintf (stderr, "% d:% sn"

Mysql_errno (& myData), mysql_error (& myData))

}

Thank you for reading this article carefully. I hope the article "vc 6 mysql how to access mysql with c interface" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report