Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fa823857
Commit
fa823857
authored
Oct 06, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.23.58
parents
9df504d2
0a241aa2
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1463 additions
and
1201 deletions
+1463
-1201
VC++Files/libmysql/libmysql.def
VC++Files/libmysql/libmysql.def
+94
-0
VC++Files/mysqlshutdown/mysql.ico
VC++Files/mysqlshutdown/mysql.ico
+0
-0
VC++Files/mysqlshutdown/mysqlshutdown.c
VC++Files/mysqlshutdown/mysqlshutdown.c
+198
-198
VC++Files/mysqlshutdown/mysqlshutdown.rc
VC++Files/mysqlshutdown/mysqlshutdown.rc
+2
-2
VC++Files/mysqlwatch/mysqlwatch.c
VC++Files/mysqlwatch/mysqlwatch.c
+745
-745
VC++Files/thr_test/thr_test.c
VC++Files/thr_test/thr_test.c
+250
-250
extra/resolveip.c
extra/resolveip.c
+1
-3
mytest-old.c
mytest-old.c
+169
-0
scripts/Makefile.am
scripts/Makefile.am
+4
-3
No files found.
VC++Files/libmysql/libmysql.def
0 → 100755
View file @
fa823857
LIBRARY LIBMYSQL
DESCRIPTION 'MySQL 3.23 Client Library'
VERSION 2.5
EXPORTS
mysql_affected_rows
mysql_close
mysql_connect
mysql_create_db
mysql_data_seek
mysql_debug
mysql_drop_db
mysql_dump_debug_info
mysql_eof
mysql_errno
mysql_error
mysql_escape_string
mysql_fetch_field
mysql_fetch_field_direct
mysql_fetch_fields
mysql_fetch_lengths
mysql_fetch_row
mysql_field_count
mysql_field_seek
mysql_field_tell
mysql_free_result
mysql_get_client_info
mysql_get_host_info
mysql_get_proto_info
mysql_get_server_info
mysql_info
mysql_init
mysql_insert_id
mysql_kill
mysql_list_dbs
mysql_list_fields
mysql_list_processes
mysql_list_tables
mysql_num_fields
mysql_num_rows
mysql_odbc_escape_string
mysql_options
mysql_ping
mysql_query
mysql_real_connect
mysql_real_query
mysql_refresh
mysql_row_seek
mysql_row_tell
mysql_select_db
mysql_shutdown
mysql_stat
mysql_store_result
mysql_thread_id
mysql_use_result
bmove_upp
delete_dynamic
_dig_vec
init_dynamic_array
insert_dynamic
int2str
is_prefix
list_add
list_delete
max_allowed_packet
my_casecmp
my_init
my_end
my_strdup
my_malloc
my_memdup
my_no_flags_free
my_realloc
my_thread_end
my_thread_init
net_buffer_length
set_dynamic
strcend
strdup_root
strfill
strinstr
strmake
strmov
strxmov
myodbc_remove_escape
mysql_thread_safe
mysql_character_set_name
mysql_change_user
mysql_send_query
mysql_read_query_result
mysql_real_escape_string
load_defaults
free_defaults
VC++Files/mysqlshutdown/mysql.ico
0 → 100644
View file @
fa823857
318 Bytes
VC++Files/mysqlshutdown/mysqlshutdown.c
View file @
fa823857
VC++Files/mysqlshutdown/mysqlshutdown.rc
View file @
fa823857
VC++Files/mysqlwatch/mysqlwatch.c
View file @
fa823857
VC++Files/thr_test/thr_test.c
View file @
fa823857
extra/resolveip.c
View file @
fa823857
...
@@ -37,12 +37,10 @@ extern int h_errno;
...
@@ -37,12 +37,10 @@ extern int h_errno;
#endif
#endif
#ifndef HAVE_IN_ADDR_T
#ifndef HAVE_IN_ADDR_T
#define in_addr_t u
_
long
#define in_addr_t ulong
#endif
#endif
static
my_bool
silent
;
static
struct
my_option
my_long_options
[]
=
static
struct
my_option
my_long_options
[]
=
{
{
{
"help"
,
'?'
,
"Displays this help and exits."
,
{
"help"
,
'?'
,
"Displays this help and exits."
,
...
...
mytest-old.c
0 → 100644
View file @
fa823857
/*C4*/
/****************************************************************/
/* Author: Jethro Wright, III TS : 3/ 4/1998 9:15 */
/* Date: 02/18/1998 */
/* mytest.c : do some testing of the libmySQL.DLL.... */
/* */
/* History: */
/* 02/18/1998 jw3 also sprach zarathustra.... */
/****************************************************************/
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <mysql.h>
#define DEFALT_SQL_STMT "SELECT * FROM db"
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif
/********************************************************
**
** main :-
**
********************************************************/
int
main
(
int
argc
,
char
*
argv
[]
)
{
char
szSQL
[
200
],
aszFlds
[
25
][
25
],
*
pszT
,
szDB
[
50
]
;
int
i
,
j
,
k
,
l
,
x
;
MYSQL
*
myData
;
MYSQL_RES
*
res
;
MYSQL_FIELD
*
fd
;
MYSQL_ROW
row
;
//....just curious....
printf
(
"sizeof( MYSQL ) == %d
\n
"
,
sizeof
(
MYSQL
)
)
;
if
(
argc
==
2
)
{
strcpy
(
szDB
,
argv
[
1
]
)
;
strcpy
(
szSQL
,
DEFALT_SQL_STMT
)
;
if
(
!
strcmp
(
szDB
,
"--debug"
))
{
strcpy
(
szDB
,
"mysql"
)
;
printf
(
"Some mysql struct information (size and offset):
\n
"
);
printf
(
"net:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
net
),
offsetof
(
MYSQL
,
net
));
printf
(
"host:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
host
),
offsetof
(
MYSQL
,
host
));
printf
(
"port:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
port
),
offsetof
(
MYSQL
,
port
));
printf
(
"protocol_version:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
protocol_version
),
offsetof
(
MYSQL
,
protocol_version
));
printf
(
"thread_id:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
thread_id
),
offsetof
(
MYSQL
,
thread_id
));
printf
(
"affected_rows:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
affected_rows
),
offsetof
(
MYSQL
,
affected_rows
));
printf
(
"packet_length:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
packet_length
),
offsetof
(
MYSQL
,
packet_length
));
printf
(
"status:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
status
),
offsetof
(
MYSQL
,
status
));
printf
(
"fields:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
fields
),
offsetof
(
MYSQL
,
fields
));
printf
(
"field_alloc:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
field_alloc
),
offsetof
(
MYSQL
,
field_alloc
));
printf
(
"free_me:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
free_me
),
offsetof
(
MYSQL
,
free_me
));
printf
(
"options:
\t
%3d %3d
\n
"
,
sizeof
(
myData
->
options
),
offsetof
(
MYSQL
,
options
));
puts
(
""
);
}
}
else
if
(
argc
>
2
)
{
strcpy
(
szDB
,
argv
[
1
]
)
;
strcpy
(
szSQL
,
argv
[
2
]
)
;
}
else
{
strcpy
(
szDB
,
"mysql"
)
;
strcpy
(
szSQL
,
DEFALT_SQL_STMT
)
;
}
//....
if
(
(
myData
=
mysql_init
((
MYSQL
*
)
0
))
&&
mysql_real_connect
(
myData
,
NULL
,
NULL
,
NULL
,
NULL
,
MYSQL_PORT
,
NULL
,
0
)
)
{
if
(
mysql_select_db
(
myData
,
szDB
)
<
0
)
{
printf
(
"Can't select the %s database !
\n
"
,
szDB
)
;
mysql_close
(
myData
)
;
return
2
;
}
}
else
{
printf
(
"Can't connect to the mysql server on port %d !
\n
"
,
MYSQL_PORT
)
;
mysql_close
(
myData
)
;
return
1
;
}
//....
if
(
!
mysql_query
(
myData
,
szSQL
)
)
{
res
=
mysql_store_result
(
myData
)
;
i
=
(
int
)
mysql_num_rows
(
res
)
;
l
=
1
;
printf
(
"Query: %s
\n
Number of records found: %ld
\n
"
,
szSQL
,
i
)
;
//....we can get the field-specific characteristics here....
for
(
x
=
0
;
fd
=
mysql_fetch_field
(
res
)
;
x
++
)
strcpy
(
aszFlds
[
x
],
fd
->
name
)
;
//....
while
(
row
=
mysql_fetch_row
(
res
)
)
{
j
=
mysql_num_fields
(
res
)
;
printf
(
"Record #%ld:-
\n
"
,
l
++
)
;
for
(
k
=
0
;
k
<
j
;
k
++
)
printf
(
" Fld #%d (%s): %s
\n
"
,
k
+
1
,
aszFlds
[
k
],
(((
row
[
k
]
==
NULL
)
||
(
!
strlen
(
row
[
k
])))
?
"NULL"
:
row
[
k
]))
;
puts
(
"==============================
\n
"
)
;
}
mysql_free_result
(
res
)
;
}
else
printf
(
"Couldn't execute %s on the server !
\n
"
,
szSQL
)
;
//....
puts
(
"==== Diagnostic info ===="
)
;
pszT
=
mysql_get_client_info
()
;
printf
(
"Client info: %s
\n
"
,
pszT
)
;
//....
pszT
=
mysql_get_host_info
(
myData
)
;
printf
(
"Host info: %s
\n
"
,
pszT
)
;
//....
pszT
=
mysql_get_server_info
(
myData
)
;
printf
(
"Server info: %s
\n
"
,
pszT
)
;
//....
res
=
mysql_list_processes
(
myData
)
;
l
=
1
;
if
(
res
)
{
for
(
x
=
0
;
fd
=
mysql_fetch_field
(
res
)
;
x
++
)
strcpy
(
aszFlds
[
x
],
fd
->
name
)
;
while
(
row
=
mysql_fetch_row
(
res
)
)
{
j
=
mysql_num_fields
(
res
)
;
printf
(
"Process #%ld:-
\n
"
,
l
++
)
;
for
(
k
=
0
;
k
<
j
;
k
++
)
printf
(
" Fld #%d (%s): %s
\n
"
,
k
+
1
,
aszFlds
[
k
],
(((
row
[
k
]
==
NULL
)
||
(
!
strlen
(
row
[
k
])))
?
"NULL"
:
row
[
k
]))
;
puts
(
"==============================
\n
"
)
;
}
}
else
{
printf
(
"Got error %s when retreiving processlist
\n
"
,
mysql_error
(
myData
));
}
//....
res
=
mysql_list_tables
(
myData
,
"%"
)
;
l
=
1
;
for
(
x
=
0
;
fd
=
mysql_fetch_field
(
res
)
;
x
++
)
strcpy
(
aszFlds
[
x
],
fd
->
name
)
;
while
(
row
=
mysql_fetch_row
(
res
)
)
{
j
=
mysql_num_fields
(
res
)
;
printf
(
"Table #%ld:-
\n
"
,
l
++
)
;
for
(
k
=
0
;
k
<
j
;
k
++
)
printf
(
" Fld #%d (%s): %s
\n
"
,
k
+
1
,
aszFlds
[
k
],
(((
row
[
k
]
==
NULL
)
||
(
!
strlen
(
row
[
k
])))
?
"NULL"
:
row
[
k
]))
;
puts
(
"==============================
\n
"
)
;
}
//....
pszT
=
mysql_stat
(
myData
)
;
puts
(
pszT
)
;
//....
mysql_close
(
myData
)
;
return
0
;
}
scripts/Makefile.am
View file @
fa823857
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
## Process this file with automake to create Makefile.in
## Process this file with automake to create Makefile.in
bin_SCRIPTS
=
@server_scripts@
\
bin_SCRIPTS
=
@server_scripts@
\
make_win_src_distribution
\
msql2mysql
\
msql2mysql
\
mysql_config
\
mysql_config
\
mysql_fix_privilege_tables
\
mysql_fix_privilege_tables
\
...
@@ -33,7 +32,8 @@ bin_SCRIPTS = @server_scripts@ \
...
@@ -33,7 +32,8 @@ bin_SCRIPTS = @server_scripts@ \
mysqldumpslow
\
mysqldumpslow
\
mysql_explain_log
\
mysql_explain_log
\
mysql_tableinfo
\
mysql_tableinfo
\
mysqld_multi
mysqld_multi
\
make_win_src_distribution
EXTRA_SCRIPTS
=
make_binary_distribution.sh
\
EXTRA_SCRIPTS
=
make_binary_distribution.sh
\
make_win_src_distribution.sh
\
make_win_src_distribution.sh
\
...
@@ -79,7 +79,8 @@ CLEANFILES = @server_scripts@ \
...
@@ -79,7 +79,8 @@ CLEANFILES = @server_scripts@ \
mysql_find_rows
\
mysql_find_rows
\
mysqlhotcopy
\
mysqlhotcopy
\
mysqldumpslow
\
mysqldumpslow
\
mysqld_multi
mysqld_multi
\
make_win_src_distribution
SUPERCLEANFILES
=
mysqlbug
SUPERCLEANFILES
=
mysqlbug
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment