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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3763f841
Commit
3763f841
authored
Sep 13, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi minor tweaks/fixups to charset section.
manual.texi minor fixups to mysql_real_connect() section.
parent
87a43166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
Docs/manual.texi
Docs/manual.texi
+12
-11
No files found.
Docs/manual.texi
View file @
3763f841
...
@@ -20721,7 +20721,7 @@ When defining the character set, every word must be a number in hexadecimal
...
@@ -20721,7 +20721,7 @@ When defining the character set, every word must be a number in hexadecimal
format
format
@item
@item
The @code{ctype} array takes up the first 257 words. The
The @code{ctype} array takes up the first 257 words. The
@code{to_lower
}, @code{to_upper} and @code{sort_order
} arrays take up
@code{to_lower
[]}, @code{to_upper[]} and @code{sort_order[]
} arrays take up
256 words each after that.
256 words each after that.
@end itemize
@end itemize
...
@@ -20882,9 +20882,10 @@ multi-byte characters, you need to use the multi-byte character
...
@@ -20882,9 +20882,10 @@ multi-byte characters, you need to use the multi-byte character
functions.
functions.
Right now the best documentation on this is the character sets that are
Right now the best documentation on this is the character sets that are
already implemented. Look at the euc_kr, gb2312, gbk, sjis and ujis
already implemented. Look at the @code{euc_kr}, @code{gb2312},
character sets for examples. These are implemented in the
@code{gbk}, @code{sjis}, and @code{ujis} character sets for
@code{ctype-'charset'.c} files in the @file{strings} directory.
examples. These are implemented in the @file{ctype-'charset'.c} files
in the @file{strings} directory.
You must specify the @code{mbmaxlen_MYSET=N} value in the special
You must specify the @code{mbmaxlen_MYSET=N} value in the special
comment at the top of the source file. @code{N} should be set to the
comment at the top of the source file. @code{N} should be set to the
...
@@ -20922,7 +20923,7 @@ In this case you should either get a new @code{Index} file or add
...
@@ -20922,7 +20923,7 @@ In this case you should either get a new @code{Index} file or add
by hand the name of any missing character sets.
by hand the name of any missing character sets.
@end itemize
@end itemize
For
MyISAM
tables, you can check the character set name and number for a
For
@code{MyISAM}
tables, you can check the character set name and number for a
table with @code{myisamchk -dvv table_name}.
table with @code{myisamchk -dvv table_name}.
...
@@ -41662,10 +41663,10 @@ through the @code{InConnectionString} argument in the
...
@@ -41662,10 +41663,10 @@ through the @code{InConnectionString} argument in the
@item @strong{Parameter} @tab @strong{Default value} @tab @strong{Comment}
@item @strong{Parameter} @tab @strong{Default value} @tab @strong{Comment}
@item user @tab ODBC (on Windows) @tab The username used to connect to MySQL.
@item user @tab ODBC (on Windows) @tab The username used to connect to MySQL.
@item server @tab localhost @tab The hostname of the MySQL server.
@item server @tab localhost @tab The hostname of the MySQL server.
@item database @tab @tab The default database
@item database @tab @tab The default database
.
@item option @tab 0 @tab A integer by which you can specify how @code{MyODBC} should work. See below.
@item option @tab 0 @tab A integer by which you can specify how @code{MyODBC} should work. See below.
@item port @tab 3306 @tab The TCP/IP port to use if @code{server} is not @code{localhost}.
@item port @tab 3306 @tab The TCP/IP port to use if @code{server} is not @code{localhost}.
@item stmt @tab @tab A statement that will be executed when connecti
on
to @code{MySQL}.
@item stmt @tab @tab A statement that will be executed when connecti
ng
to @code{MySQL}.
@item password @tab @tab The password for the @code{server} @code{user} combination.
@item password @tab @tab The password for the @code{server} @code{user} combination.
@item socket @tab @tab The socket or Windows pipe to connect to.
@item socket @tab @tab The socket or Windows pipe to connect to.
@end multitable
@end multitable
...
@@ -44393,14 +44394,14 @@ if (!mysql_real_connect(&mysql,"host","user","passwd","database",0,NULL,0))
...
@@ -44393,14 +44394,14 @@ if (!mysql_real_connect(&mysql,"host","user","passwd","database",0,NULL,0))
@end example
@end example
By using @code{mysql_options()} the MySQL library will read the
By using @code{mysql_options()} the MySQL library will read the
@code{[client]} and @code{
your_prog_name
} sections in the @file{my.cnf}
@code{[client]} and @code{
[your_prog_name]
} sections in the @file{my.cnf}
file which will ensure that your program will work, even if someone has
file which will ensure that your program will work, even if someone has
set up MySQL in some non-standard way.
set up MySQL in some non-standard way.
Note that upon connection, @code{mysql_real_connect()} sets the @code{reconnect}
Note that upon connection, @code{mysql_real_connect()} sets the @code{reconnect}
flag (part of the
MYSQL structure) to a value of @code{1}. This flag indicates,
flag (part of the
@code{MYSQL} structure) to a value of @code{1}. This
in the event that a query cannot be performed because of a lost connection, to
flag indicates, in the event that a query cannot be performed because
try reconnecting to the server before giving up.
of a lost connection, to
try reconnecting to the server before giving up.
@node mysql_real_escape_string, mysql_real_query, mysql_real_connect, C API functions
@node mysql_real_escape_string, mysql_real_query, mysql_real_connect, C API functions
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