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
9709370e
Commit
9709370e
authored
Sep 15, 2001
by
monty@work.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
bff093a0
cf80b8ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
170 additions
and
7 deletions
+170
-7
Docs/manual.texi
Docs/manual.texi
+6
-4
isam/_dbug.c
isam/_dbug.c
+1
-1
sql/sql_acl.cc
sql/sql_acl.cc
+4
-2
support-files/make_mysql_pkg.sh
support-files/make_mysql_pkg.sh
+159
-0
No files found.
Docs/manual.texi
View file @
9709370e
...
@@ -34127,7 +34127,7 @@ mysql> select * from bar;
...
@@ -34127,7 +34127,7 @@ mysql> select * from bar;
For each row in table @code{foo}, a row is inserted in @code{bar} with
For each row in table @code{foo}, a row is inserted in @code{bar} with
the values from @code{foo} and default values for the new columns.
the values from @code{foo} and default values for the new columns.
@code{CREATE TABLE ... SELECT} will not automaticly create any indexes
@code{CREATE TABLE ... SELECT} will not automatic
al
ly create any indexes
for you. This is done intentionally to make the command as flexible as
for you. This is done intentionally to make the command as flexible as
possible. If you want to have indexes in the created table, you should
possible. If you want to have indexes in the created table, you should
specify these before the @code{SELECT} statement:
specify these before the @code{SELECT} statement:
...
@@ -41970,7 +41970,7 @@ MySQL function. This initializes some global variables that MySQL
...
@@ -41970,7 +41970,7 @@ MySQL function. This initializes some global variables that MySQL
needs. If you are using a thread safe client library, this will also
needs. If you are using a thread safe client library, this will also
call @code{my_thread_init()} for this thread.
call @code{my_thread_init()} for this thread.
This is automaticly called by @code{mysql_init()}
This is automatic
al
ly called by @code{mysql_init()}
and @code{mysql_connect()}.
and @code{mysql_connect()}.
@subsubheading Return Values
@subsubheading Return Values
...
@@ -41987,7 +41987,7 @@ none.
...
@@ -41987,7 +41987,7 @@ none.
This function needs to be called for each created thread to initialize
This function needs to be called for each created thread to initialize
thread specific variables.
thread specific variables.
This is automaticly called by @code{my_init()} and @code{mysql_connect()}.
This is automatic
al
ly called by @code{my_init()} and @code{mysql_connect()}.
@subsubheading Return Values
@subsubheading Return Values
...
@@ -42003,7 +42003,7 @@ none.
...
@@ -42003,7 +42003,7 @@ none.
This function needs to be called before calling @code{pthread_exit()} to
This function needs to be called before calling @code{pthread_exit()} to
freed memory allocated by @code{my_thread_init()}.
freed memory allocated by @code{my_thread_init()}.
Note that this function is NOT invoked automatic
ly be
the client
Note that this function is NOT invoked automatic
ally by
the client
library!
library!
@subsubheading Return Values
@subsubheading Return Values
...
@@ -47113,6 +47113,8 @@ as @code{NULL}.
...
@@ -47113,6 +47113,8 @@ as @code{NULL}.
Fixed problem with @code{myisampack} when using pre-space filled CHAR columns.
Fixed problem with @code{myisampack} when using pre-space filled CHAR columns.
@item
@item
Applied patch from Yuri Dario for OS2.
Applied patch from Yuri Dario for OS2.
@item
Fixed bug in @code{--safe-user-create}
@end itemize
@end itemize
@node News-3.23.42, News-3.23.41, News-3.23.43, News-3.23.x
@node News-3.23.42, News-3.23.41, News-3.23.43, News-3.23.x
isam/_dbug.c
View file @
9709370e
...
@@ -89,7 +89,7 @@ void _nisam_print_key(FILE *stream, register N_KEYSEG *keyseg, const uchar *key)
...
@@ -89,7 +89,7 @@ void _nisam_print_key(FILE *stream, register N_KEYSEG *keyseg, const uchar *key)
key
=
end
;
key
=
end
;
break
;
break
;
case
HA_KEYTYPE_UINT24
:
case
HA_KEYTYPE_UINT24
:
VOID
(
fprintf
(
stream
,
"%ld"
,
uint3korr
(
key
)));
VOID
(
fprintf
(
stream
,
"%ld"
,
(
long
)
uint3korr
(
key
)));
key
=
end
;
key
=
end
;
break
;
break
;
case
HA_KEYTYPE_FLOAT
:
case
HA_KEYTYPE_FLOAT
:
...
...
sql/sql_acl.cc
View file @
9709370e
...
@@ -1624,6 +1624,7 @@ int mysql_table_grant (THD *thd, TABLE_LIST *table_list,
...
@@ -1624,6 +1624,7 @@ int mysql_table_grant (THD *thd, TABLE_LIST *table_list,
List_iterator
<
LEX_USER
>
str_list
(
user_list
);
List_iterator
<
LEX_USER
>
str_list
(
user_list
);
LEX_USER
*
Str
;
LEX_USER
*
Str
;
TABLE_LIST
tables
[
3
];
TABLE_LIST
tables
[
3
];
bool
create_new_users
=
0
;
DBUG_ENTER
(
"mysql_table_grant"
);
DBUG_ENTER
(
"mysql_table_grant"
);
if
(
!
initialized
)
if
(
!
initialized
)
...
@@ -1691,6 +1692,8 @@ int mysql_table_grant (THD *thd, TABLE_LIST *table_list,
...
@@ -1691,6 +1692,8 @@ int mysql_table_grant (THD *thd, TABLE_LIST *table_list,
DBUG_RETURN
(
-
1
);
/* purecov: deadcode */
DBUG_RETURN
(
-
1
);
/* purecov: deadcode */
}
}
if
(
!
revoke_grant
)
create_new_users
=
test_if_create_new_users
(
thd
);
int
result
=
0
;
int
result
=
0
;
pthread_mutex_lock
(
&
LOCK_grant
);
pthread_mutex_lock
(
&
LOCK_grant
);
MEM_ROOT
*
old_root
=
my_pthread_getspecific_ptr
(
MEM_ROOT
*
,
THR_MALLOC
);
MEM_ROOT
*
old_root
=
my_pthread_getspecific_ptr
(
MEM_ROOT
*
,
THR_MALLOC
);
...
@@ -1716,8 +1719,7 @@ int mysql_table_grant (THD *thd, TABLE_LIST *table_list,
...
@@ -1716,8 +1719,7 @@ int mysql_table_grant (THD *thd, TABLE_LIST *table_list,
*
Str
,
*
Str
,
0
,
0
,
revoke_grant
?
'N'
:
'Y'
,
revoke_grant
?
'N'
:
'Y'
,
(
revoke_grant
?
0
:
create_new_users
))
test_if_create_new_users
(
thd
))))
{
{
result
=
-
1
;
// Remember error
result
=
-
1
;
// Remember error
continue
;
// Add next user
continue
;
// Add next user
...
...
support-files/make_mysql_pkg.sh
0 → 100644
View file @
9709370e
#!/bin/sh
#
# make_mysql_pkg.sh
#
# This script creates a Mac OS X installation package
# for Apple's Installer application.
#
# To use it:
#
# 1.) unpack the MySQL source tarball
# 2.) cd to into the resulting directory and stay there for the next steps
# 3.) "configure" the source (preferably with --mandir=/usr/local/share/man)
# 4.) "make" the package
# 5.) invoke this script with superuser privileges (sudo or in a root shell)
#
# Written by Marc Liyanage (http://www.entropy.ch)
#
# History:
#
# When Who What
# -------------------------------------------------------------
# 2001-09-13 Marc Liyanage First version
# Find the version number of this particular MySQL build
#
OLDWD
=
`
pwd
`
VERSION_H_FILE
=
$OLDWD
/include/mysql_version.h
if
[
!
-e
$VERSION_H_FILE
]
then
echo
$VERSION_H_FILE
not found, make sure you are
in
the mysql
source dir
exit
1
fi
MYSQLVERSION
=
`
egrep
'MYSQL_SERVER_VERSION'
$VERSION_H_FILE
| perl
-e
'$_ = <>; $_ =~ /"(.+?)"/; print $1'
`
# We will temporarily rename /usr/local to this name
# and then mkdir a new, empty /usr/local
#
LOCAL_TMPDIR
=
/usr/local.tmp
# At the end, we'll keep our temporary /usr/local
# to this name
#
LOCAL_BACKUPDIR
=
/usr/local.mysql-package
# Where do we create the package directory
#
PKG_DIR
=
/tmp/mysql-
$MYSQLVERSION
.pkg
# Where is the resources directory within the
# package directory
#
PKG_RESOURCES_DIR
=
$PKG_DIR
/Contents/Resources
# Check if old stuff is in our way
#
if
[
-e
$LOCAL_BACKUPDIR
]
then
echo
$LOCAL_BACKUPDIR
exists, please remove first...
exit
1
fi
if
[
-e
$LOCAL_TMPDIR
]
then
echo
$LOCAL_TMPDIR
exists, please remove first...
exit
1
fi
if
[
-e
$PKG_DIR
]
then
echo
$PKG_DIR
exists, please remove first...
exit
1
fi
# Now create the package dir
#
mkdir
-p
$PKG_RESOURCES_DIR
# Move the existing /usr/local out of our way
#
mv
/usr/local
$LOCAL_TMPDIR
# Now create our new empty temporary /usr/local
#
mkdir
/usr/local
# And install MySQL there
#
make
install
# cd there so the next few commands will use it
# as base directory
#
cd
/usr/local
# First, create the gzipped pax archive file
# which contains the actual files
#
pax
-w
.
|
gzip
-c
>
$PKG_RESOURCES_DIR
/mysql-
$MYSQLVERSION
.pax.gz
# Create the bom ("Bill Of Materials") file
#
mkbom
.
$PKG_RESOURCES_DIR
/mysql-
$MYSQLVERSION
.bom
# Create the sizes file with the package space
# requirement numbers and file count
#
SIZE_UNCOMPRESSED
=
`
du
-sk
/usr/local |
cut
-f
1
`
SIZE_COMPRESSED
=
`
du
-sk
$PKG_DIR
|
cut
-f
1
`
NUMFILES
=
`
find /usr/local |
wc
-l
| perl
-e
'$_ = <>; $_ =~ /\s+(\d+)/; print $1 - 1'
`
echo
NumFiles
$NUMFILES
>>
$PKG_RESOURCES_DIR
/mysql-
$MYSQLVERSION
.sizes
echo
InstalledSize
$SIZE_UNCOMPRESSED
>>
$PKG_RESOURCES_DIR
/mysql-
$MYSQLVERSION
.sizes
echo
CompressedSize
$SIZE_COMPRESSED
>>
$PKG_RESOURCES_DIR
/mysql-
$MYSQLVERSION
.sizes
# Finally create the info file which drives the "Installer" application
#
cat
>
$PKG_RESOURCES_DIR
/mysql-
$MYSQLVERSION
.info
<<-
EOF
Title MySQL
Version
$MYSQLVERSION
Description The MySQL database server in a convenient Mac OS X package. Some additional configuration is necessary, please see http://www.entropy.ch/software/macosx/mysql/
DefaultLocation /usr/local
Diskname (null)
DeleteWarning
NeedsAuthorization YES
DisableStop NO
UseUserMask NO
Application NO
Relocatable NO
Required NO
InstallOnly NO
RequiresReboot NO
InstallFat NO
EOF
# Create a .tar.gz file for the package directory
#
cd
$PKG_DIR
cd
..
DIRNAME
=
`
dirname
$PKG_DIR
`
BASENAME
=
`
basename
$PKG_DIR
`
FILENAME
=
$BASENAME
.tar.gz
tar
-cvzf
$FILENAME
$BASENAME
# Move our temporary /usr/local out of the way
# and the original one back
#
mv
/usr/local
$LOCAL_BACKUPDIR
mv
$LOCAL_TMPDIR
/usr/local
echo
output package is
in
$DIRNAME
/
$FILENAME
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