Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.255
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
emps /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
annotate
13.09
KB
-rwxr-xr-x
2026-05-14 17:34
autoconf
14.32
KB
-rwxr-xr-x
2026-05-14 17:32
autoheader
8.43
KB
-rwxr-xr-x
2026-05-14 17:32
autom4te
31.48
KB
-rwxr-xr-x
2026-05-14 17:32
autopoint
23.93
KB
-rwxr-xr-x
2026-05-14 17:36
autoreconf
20.68
KB
-rwxr-xr-x
2026-05-14 17:32
autoscan
16.82
KB
-rwxr-xr-x
2026-05-14 17:32
autoupdate
33.17
KB
-rwxr-xr-x
2026-05-14 17:32
bdftogd
3.9
KB
-rwxr-xr-x
2026-05-14 17:34
bsqldb
41.8
KB
-rwxr-xr-x
2026-05-14 17:35
bunzip2
281.48
KB
-rwxr-xr-x
2026-05-14 17:33
bzcat
281.48
KB
-rwxr-xr-x
2026-05-14 17:33
bzcmp
2.08
KB
-rwxr-xr-x
2026-05-14 17:33
bzdiff
2.08
KB
-rwxr-xr-x
2026-05-14 17:33
bzegrep
1.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzfgrep
1.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzgrep
1.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzip2
281.48
KB
-rwxr-xr-x
2026-05-14 17:33
bzip2recover
32.64
KB
-rwxr-xr-x
2026-05-14 17:33
bzless
1.23
KB
-rwxr-xr-x
2026-05-14 17:33
bzmore
1.23
KB
-rwxr-xr-x
2026-05-14 17:33
c_rehash
6.73
KB
-rwxr-xr-x
2026-05-14 17:16
captoinfo
63.13
KB
-rwxr-xr-x
2026-05-14 17:22
cjpeg
44.55
KB
-rwxr-xr-x
2026-05-14 17:34
clear
8.44
KB
-rwxr-xr-x
2026-05-14 17:22
clusterdb
81.73
KB
-rwxr-xr-x
2026-05-14 17:32
createdb
85.87
KB
-rwxr-xr-x
2026-05-14 17:32
createuser
82.13
KB
-rwxr-xr-x
2026-05-14 17:32
curl
242.66
KB
-rwxr-xr-x
2026-05-14 17:33
curl-config
5.67
KB
-rwxr-xr-x
2026-05-14 17:33
datacopy
27.1
KB
-rwxr-xr-x
2026-05-14 17:35
defncopy
28.15
KB
-rwxr-xr-x
2026-05-14 17:35
derb
30.97
KB
-rwxr-xr-x
2026-05-14 17:39
djpeg
35.84
KB
-rwxr-xr-x
2026-05-14 17:34
dropdb
77.02
KB
-rwxr-xr-x
2026-05-14 17:32
dropuser
76.96
KB
-rwxr-xr-x
2026-05-14 17:32
ecpg
981.44
KB
-rwxr-xr-x
2026-05-14 17:32
envsubst
43.15
KB
-rwxr-xr-x
2026-05-14 17:36
fisql
39.02
KB
-rwxr-xr-x
2026-05-14 17:35
fpmctl
1.73
KB
-rwxr-xr-x
2026-05-14 17:44
freebcp
27.42
KB
-rwxr-xr-x
2026-05-14 17:35
freetype-config
3.63
KB
-rwxr-xr-x
2026-05-14 17:34
gd2copypal
8.59
KB
-rwxr-xr-x
2026-05-14 17:34
gd2togif
8.54
KB
-rwxr-xr-x
2026-05-14 17:34
gd2topng
12.64
KB
-rwxr-xr-x
2026-05-14 17:34
gdcmpgif
12.63
KB
-rwxr-xr-x
2026-05-14 17:34
gdparttopng
8.64
KB
-rwxr-xr-x
2026-05-14 17:34
gdtopng
8.54
KB
-rwxr-xr-x
2026-05-14 17:34
genbrk
18.54
KB
-rwxr-xr-x
2026-05-14 17:39
gencfu
13.96
KB
-rwxr-xr-x
2026-05-14 17:39
gencnval
27.45
KB
-rwxr-xr-x
2026-05-14 17:39
gendict
29.29
KB
-rwxr-xr-x
2026-05-14 17:39
genrb
140.42
KB
-rwxr-xr-x
2026-05-14 17:39
gettext
42.57
KB
-rwxr-xr-x
2026-05-14 17:36
gettext.sh
4.51
KB
-rwxr-xr-x
2026-05-14 17:36
gettextize
41.16
KB
-rwxr-xr-x
2026-05-14 17:36
giftogd2
8.59
KB
-rwxr-xr-x
2026-05-14 17:34
iconv
109.52
KB
-rwxr-xr-x
2026-05-14 17:27
icu-config
21.54
KB
-rwxr-xr-x
2026-05-14 17:39
icuinfo
13.46
KB
-rwxr-xr-x
2026-05-14 17:39
ifnames
4.09
KB
-rwxr-xr-x
2026-05-14 17:32
infocmp
58.49
KB
-rwxr-xr-x
2026-05-14 17:22
infotocap
63.13
KB
-rwxr-xr-x
2026-05-14 17:22
initdb
144.46
KB
-rwxr-xr-x
2026-05-14 17:32
innochecksum
27.82
KB
-rwxr-xr-x
2026-05-14 17:26
jpegtran
52.73
KB
-rwxr-xr-x
2026-05-14 17:34
ldapadd
63.13
KB
-rwxr-xr-x
2026-05-14 17:29
ldapcompare
51.02
KB
-rwxr-xr-x
2026-05-14 17:29
ldapdelete
55.12
KB
-rwxr-xr-x
2026-05-14 17:29
ldapexop
51.09
KB
-rwxr-xr-x
2026-05-14 17:29
ldapmodify
63.13
KB
-rwxr-xr-x
2026-05-14 17:29
ldapmodrdn
51.02
KB
-rwxr-xr-x
2026-05-14 17:29
ldappasswd
51.04
KB
-rwxr-xr-x
2026-05-14 17:29
ldapsearch
75.3
KB
-rwxr-xr-x
2026-05-14 17:29
ldapurl
18.38
KB
-rwxr-xr-x
2026-05-14 17:29
ldapwhoami
51.04
KB
-rwxr-xr-x
2026-05-14 17:29
libmcrypt-config
1.43
KB
-rwxr-xr-x
2026-05-14 17:33
libpng-config
2.28
KB
-rwxr-xr-x
2026-05-14 17:34
libpng16-config
2.28
KB
-rwxr-xr-x
2026-05-14 17:34
libtool
311.68
KB
-rwxr-xr-x
2026-05-14 17:32
libtoolize
76.78
KB
-rwxr-xr-x
2026-05-14 17:32
makeconv
55.24
KB
-rwxr-xr-x
2026-05-14 17:39
mcrypt
110.92
KB
-rwxr-xr-x
2026-05-14 17:34
mdecrypt
110.92
KB
-rwxr-xr-x
2026-05-14 17:34
msgattrib
26.77
KB
-rwxr-xr-x
2026-05-14 17:36
msgcat
22.85
KB
-rwxr-xr-x
2026-05-14 17:36
msgcmp
28.12
KB
-rwxr-xr-x
2026-05-14 17:36
msgcomm
22.85
KB
-rwxr-xr-x
2026-05-14 17:36
msgconv
22.53
KB
-rwxr-xr-x
2026-05-14 17:36
msgen
22.52
KB
-rwxr-xr-x
2026-05-14 17:36
msgexec
18.8
KB
-rwxr-xr-x
2026-05-14 17:36
msgfilter
27.79
KB
-rwxr-xr-x
2026-05-14 17:36
msgfmt
91.11
KB
-rwxr-xr-x
2026-05-14 17:36
msggrep
45.83
KB
-rwxr-xr-x
2026-05-14 17:36
msginit
53.94
KB
-rwxr-xr-x
2026-05-14 17:36
msgmerge
69.17
KB
-rwxr-xr-x
2026-05-14 17:36
msgunfmt
37.17
KB
-rwxr-xr-x
2026-05-14 17:36
msguniq
22.73
KB
-rwxr-xr-x
2026-05-14 17:36
msql2mysql
1.42
KB
-rwxr-xr-x
2026-05-14 17:22
my_print_defaults
3.74
MB
-rwxr-xr-x
2026-05-14 17:26
myisam_ftdump
5.58
MB
-rwxr-xr-x
2026-05-14 17:23
myisamchk
6
MB
-rwxr-xr-x
2026-05-14 17:23
myisamlog
5.55
MB
-rwxr-xr-x
2026-05-14 17:23
myisampack
5.66
MB
-rwxr-xr-x
2026-05-14 17:23
mysql
7.9
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_client_test
8
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_config
6.66
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_convert_table_format
4.11
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_find_rows
3.21
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_fix_extensions
1.22
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_install_db
14.42
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_plugin
3.78
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_secure_installation
8.53
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_setpermission
17.05
KB
-rwxr-xr-x
2026-05-14 17:22
mysql_tzinfo_to_sql
3.58
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_upgrade
6.96
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_waitpid
3.74
MB
-rwxr-xr-x
2026-05-14 17:26
mysql_zap
3.77
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlaccess
109.38
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlaccess.conf
1.66
KB
-rwxr-xr-x
2018-08-28 21:12
mysqladmin
6.9
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlbinlog
7.54
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlbug
10.43
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlcheck
6.88
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlctl
11.16
KB
-rwxr-xr-x
2026-05-14 17:36
mysqld
55.04
MB
-rwxr-xr-x
2026-05-14 17:26
mysqld_multi
23.55
KB
-rwxr-xr-x
2026-05-14 17:22
mysqld_safe
26.66
KB
-rwxr-xr-x
2026-05-14 17:22
mysqldump
7.1
MB
-rwxr-xr-x
2026-05-14 17:26
mysqldumpslow
7.19
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlhotcopy
34.04
KB
-rwxr-xr-x
2026-05-14 17:22
mysqlimport
6.89
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlshow
6.88
MB
-rwxr-xr-x
2026-05-14 17:26
mysqlslap
6.93
MB
-rwxr-xr-x
2026-05-14 17:26
mysqltest
7.52
MB
-rwxr-xr-x
2026-05-14 17:26
ncurses5-config
5.2
KB
-rwxr-xr-x
2026-05-14 17:22
ngettext
42.59
KB
-rwxr-xr-x
2026-05-14 17:36
nginxctl
2.23
KB
-rwxr-xr-x
2026-05-14 17:32
onig-config
1.35
KB
-rwxr-xr-x
2026-05-14 17:37
openssl
982.48
KB
-rwxr-xr-x
2026-05-14 17:18
osql
9.15
KB
-rwxr-xr-x
2026-05-14 17:35
pcre-config
2.31
KB
-rwxr-xr-x
2026-05-14 17:18
pcregrep
39.82
KB
-rwxr-xr-x
2026-05-14 17:18
pcretest
61.12
KB
-rwxr-xr-x
2026-05-14 17:18
perror
3.83
MB
-rwxr-xr-x
2026-05-14 17:26
pg_amcheck
108.26
KB
-rwxr-xr-x
2026-05-14 17:32
pg_archivecleanup
47.46
KB
-rwxr-xr-x
2026-05-14 17:32
pg_basebackup
137.1
KB
-rwxr-xr-x
2026-05-14 17:32
pg_checksums
65.62
KB
-rwxr-xr-x
2026-05-14 17:32
pg_config
45.98
KB
-rwxr-xr-x
2026-05-14 17:32
pg_controldata
60.11
KB
-rwxr-xr-x
2026-05-14 17:32
pg_ctl
75.36
KB
-rwxr-xr-x
2026-05-14 17:32
pg_dump
422.85
KB
-rwxr-xr-x
2026-05-14 17:32
pg_dumpall
116.84
KB
-rwxr-xr-x
2026-05-14 17:32
pg_isready
76.62
KB
-rwxr-xr-x
2026-05-14 17:32
pg_receivewal
96.14
KB
-rwxr-xr-x
2026-05-14 17:32
pg_recvlogical
96.74
KB
-rwxr-xr-x
2026-05-14 17:32
pg_resetwal
70.04
KB
-rwxr-xr-x
2026-05-14 17:32
pg_restore
192.88
KB
-rwxr-xr-x
2026-05-14 17:32
pg_rewind
144.02
KB
-rwxr-xr-x
2026-05-14 17:32
pg_test_fsync
48.18
KB
-rwxr-xr-x
2026-05-14 17:32
pg_test_timing
42.34
KB
-rwxr-xr-x
2026-05-14 17:32
pg_upgrade
158.74
KB
-rwxr-xr-x
2026-05-14 17:32
pg_verifybackup
116.66
KB
-rwxr-xr-x
2026-05-14 17:32
pg_waldump
106.17
KB
-rwxr-xr-x
2026-05-14 17:32
pgbench
193.3
KB
-rwxr-xr-x
2026-05-14 17:32
phar
14.54
KB
-rwxr-xr-x
2026-05-14 17:43
phar.phar
14.54
KB
-rwxr-xr-x
2026-05-14 17:43
php
19.99
MB
-rwxr-xr-x
2026-05-14 17:43
php-cgi
19.99
MB
-rwxr-xr-x
2026-05-14 17:43
php-config
5.14
KB
-rwxr-xr-x
2026-05-14 17:43
phpdbg
20.01
MB
-rwxr-xr-x
2026-05-14 17:43
phpize
4.43
KB
-rwxr-xr-x
2026-05-14 17:43
pkgdata
46.42
KB
-rwxr-xr-x
2026-05-14 17:39
pngtogd
8.54
KB
-rwxr-xr-x
2026-05-14 17:34
pngtogd2
8.59
KB
-rwxr-xr-x
2026-05-14 17:34
postgres
8.37
MB
-rwxr-xr-x
2026-05-14 17:32
postmaster
8.37
MB
-rwxr-xr-x
2026-05-14 17:32
psql
503.38
KB
-rwxr-xr-x
2026-05-14 17:32
rdjpgcom
13.3
KB
-rwxr-xr-x
2026-05-14 17:34
recode-sr-latin
18.17
KB
-rwxr-xr-x
2026-05-14 17:36
reindexdb
90.73
KB
-rwxr-xr-x
2026-05-14 17:32
replace
3.68
MB
-rwxr-xr-x
2026-05-14 17:26
reset
23.75
KB
-rwxr-xr-x
2026-05-14 17:22
resolve_stack_dump
3.75
MB
-rwxr-xr-x
2026-05-14 17:26
resolveip
3.74
MB
-rwxr-xr-x
2026-05-14 17:26
sqlite3
158.13
KB
-rwxr-xr-x
2026-05-14 17:33
tabs
17.53
KB
-rwxr-xr-x
2026-05-14 17:22
tdspool
405.46
KB
-rwxr-xr-x
2026-05-14 17:35
testgdbm
39.11
KB
-rwxr-xr-x
2026-05-14 17:34
tic
63.13
KB
-rwxr-xr-x
2026-05-14 17:22
toe
18.38
KB
-rwxr-xr-x
2026-05-14 17:22
tput
18.34
KB
-rwxr-xr-x
2026-05-14 17:22
tset
23.75
KB
-rwxr-xr-x
2026-05-14 17:22
tsql
381.83
KB
-rwxr-xr-x
2026-05-14 17:35
uconv
55.21
KB
-rwxr-xr-x
2026-05-14 17:39
vacuumdb
90.95
KB
-rwxr-xr-x
2026-05-14 17:32
webpng
17.77
KB
-rwxr-xr-x
2026-05-14 17:34
wrjpgcom
17.52
KB
-rwxr-xr-x
2026-05-14 17:34
xgettext
289.89
KB
-rwxr-xr-x
2026-05-14 17:36
xml2-config
1.77
KB
-rwxr-xr-x
2026-05-14 17:28
xmlcatalog
41.3
KB
-rwxr-xr-x
2026-05-14 17:28
xmllint
203.2
KB
-rwxr-xr-x
2026-05-14 17:28
xmlwf
33.66
KB
-rwxr-xr-x
2026-05-14 17:44
xslt-config
2.41
KB
-rwxr-xr-x
2026-05-14 17:28
xsltproc
81.52
KB
-rwxr-xr-x
2026-05-14 17:28
zipcmp
23.77
KB
-rwxr-xr-x
2026-05-14 17:37
zipmerge
14.38
KB
-rwxr-xr-x
2026-05-14 17:37
ziptool
48.5
KB
-rwxr-xr-x
2026-05-14 17:37
Save
Rename
#!/bin/sh # Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # This scripts creates the MySQL Server system tables # # All unrecognized arguments to this script are passed to mysqld. basedir="" builddir="" ldata="./data" langdir="" srcdir="" args="" defaults="" mysqld_opt="" user="" force=0 in_rpm=0 ip_only=0 cross_bootstrap=0 usage() { cat <<EOF Usage: $0 [OPTIONS] --basedir=path The path to the MySQL installation directory. --builddir=path If using --srcdir with out-of-directory builds, you will need to set this to the location of the build directory where built files reside. --cross-bootstrap For internal use. Used when building the MySQL system tables on a different host than the target. --datadir=path The path to the MySQL data directory. --defaults-extra-file=name Read this file after the global files are read. --defaults-file=name Only read default options from the given file name. --force Causes mysql_install_db to run even if DNS does not work. In that case, grant table entries that normally use hostnames will use IP addresses. --help Display this help and exit. --ldata=path The path to the MySQL data directory. Same as --datadir. --no-defaults Don't read default options from any option file. --rpm For internal use. This option is used by RPM files during the MySQL installation process. --skip-name-resolve Use IP addresses rather than hostnames when creating grant table entries. This option can be useful if your DNS does not work. --srcdir=path The path to the MySQL source directory. This option uses the compiled binaries and support files within the source tree, useful for if you don't want to install MySQL yet and just want to create the system tables. --user=user_name The login username to use for running mysqld. Files and directories created by mysqld will be owned by this user. You must be root to use this option. By default mysqld runs using your current login name and files and directories that it creates will be owned by you. All other options are passed to the mysqld program EOF exit 1 } s_echo() { if test "$in_rpm" -eq 0 -a "$cross_bootstrap" -eq 0 then echo "$1" fi } parse_arg() { echo "$1" | sed -e 's/^[^=]*=//' } parse_arguments() { # We only need to pass arguments through to the server if we don't # handle them here. So, we collect unrecognized options (passed on # the command line) into the args variable. pick_args= if test "$1" = PICK-ARGS-FROM-ARGV then pick_args=1 shift fi for arg do case "$arg" in --force) force=1 ;; --basedir=*) basedir=`parse_arg "$arg"` ;; --builddir=*) builddir=`parse_arg "$arg"` ;; --srcdir=*) srcdir=`parse_arg "$arg"` ;; --ldata=*|--datadir=*) ldata=`parse_arg "$arg"` ;; --user=*) # Note that the user will be passed to mysqld so that it runs # as 'user' (crucial e.g. if log-bin=/some_other_path/ # where a chown of datadir won't help) user=`parse_arg "$arg"` ;; --skip-name-resolve) ip_only=1 ;; --verbose) verbose=1 ;; # Obsolete --rpm) in_rpm=1 ;; --help) usage ;; --no-defaults|--defaults-file=*|--defaults-extra-file=*) defaults="$arg" ;; --cross-bootstrap|--windows) # Used when building the MySQL system tables on a different host than # the target. The platform-independent files that are created in # --datadir on the host can be copied to the target system. # # The most common use for this feature is in the Windows installer # which will take the files from datadir and include them as part of # the install package. See top-level 'dist-hook' make target. # # --windows is a deprecated alias cross_bootstrap=1 ;; *) if test -n "$pick_args" then # This sed command makes sure that any special chars are quoted, # so the arg gets passed exactly to the server. # XXX: This is broken; true fix requires using eval and proper # quoting of every single arg ($basedir, $ldata, etc.) #args="$args "`echo "$arg" | sed -e 's,\([^a-zA-Z0-9_.-]\),\\\\\1,g'` args="$args $arg" fi ;; esac done } # Try to find a specific file within --basedir which can either be a binary # release or installed source directory and return the path. find_in_basedir() { case "$1" in --dir) return_dir=1; shift ;; esac file=$1; shift for dir in "$@" do if test -f "$basedir/$dir/$file" then if test -n "$return_dir" then echo "$basedir/$dir" else echo "$basedir/$dir/$file" fi break fi done } cannot_find_file() { echo echo "FATAL ERROR: Could not find $1" shift if test $# -ne 0 then echo echo "The following directories were searched:" echo for dir in "$@" do echo " $dir" done fi echo echo "If you compiled from source, you need to run 'make install' to" echo "copy the software into the correct location ready for operation." echo echo "If you are using a binary release, you must either be at the top" echo "level of the extracted archive, or pass the --basedir option" echo "pointing to that location." echo } # Ok, let's go. We first need to parse arguments which are required by # my_print_defaults so that we can execute it first, then later re-parse # the command line to add any extra bits that we need. parse_arguments PICK-ARGS-FROM-ARGV "$@" # # We can now find my_print_defaults. This script supports: # # --srcdir=path pointing to compiled source tree # --basedir=path pointing to installed binary location # # or default to compiled-in locations. # if test -n "$srcdir" && test -n "$basedir" then echo "ERROR: Specify either --basedir or --srcdir, not both." exit 1 fi if test -n "$srcdir" then if test -z "$builddir" then builddir="$srcdir" fi print_defaults="$builddir/extra/my_print_defaults" elif test -n "$basedir" then print_defaults=`find_in_basedir my_print_defaults bin extra` if test -z "$print_defaults" then cannot_find_file my_print_defaults $basedir/bin $basedir/extra exit 1 fi else print_defaults="./bin/my_print_defaults" fi if test ! -x "$print_defaults" then cannot_find_file "$print_defaults" exit 1 fi # Now we can get arguments from the groups [mysqld] and [mysql_install_db] # in the my.cfg file, then re-run to merge with command line arguments. parse_arguments `$print_defaults $defaults mysqld mysql_install_db` parse_arguments PICK-ARGS-FROM-ARGV "$@" # Configure paths to support files if test -n "$srcdir" then basedir="$builddir" bindir="$basedir/client" extra_bindir="$basedir/extra" mysqld="$basedir/sql/mysqld" langdir="$srcdir/sql/share/english" pkgdatadir="$srcdir/scripts" scriptdir="$srcdir/scripts" elif test -n "$basedir" then bindir="$basedir/bin" extra_bindir="$bindir" mysqld=`find_in_basedir mysqld libexec sbin bin` if test -z "$mysqld" then cannot_find_file mysqld $basedir/libexec $basedir/sbin $basedir/bin exit 1 fi langdir=`find_in_basedir --dir errmsg.sys share/english share/mysql/english` if test -z "$langdir" then cannot_find_file errmsg.sys $basedir/share/english $basedir/share/mysql/english exit 1 fi pkgdatadir=`find_in_basedir --dir fill_help_tables.sql share share/mysql` if test -z "$pkgdatadir" then cannot_find_file fill_help_tables.sql $basedir/share $basedir/share/mysql exit 1 fi scriptdir="$basedir/scripts" else basedir="." bindir="./bin" extra_bindir="$bindir" mysqld="./bin/mysqld" pkgdatadir="./share" scriptdir="./bin" fi # Set up paths to SQL scripts required for bootstrap fill_help_tables="$pkgdatadir/fill_help_tables.sql" create_system_tables="$pkgdatadir/mysql_system_tables.sql" fill_system_tables="$pkgdatadir/mysql_system_tables_data.sql" for f in $fill_help_tables $create_system_tables $fill_system_tables do if test ! -f "$f" then cannot_find_file "$f" exit 1 fi done if test ! -x "$mysqld" then cannot_find_file "$mysqld" exit 1 fi if test -n "$langdir" then if test ! -f "$langdir/errmsg.sys" then cannot_find_file "$langdir/errmsg.sys" exit 1 fi mysqld_opt="--lc-messages-dir=$langdir/.." fi # Try to determine the hostname hostname=`hostname` # Check if hostname is valid if test "$cross_bootstrap" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0 then resolved=`$extra_bindir/resolveip $hostname 2>&1` if test $? -ne 0 then resolved=`$extra_bindir/resolveip localhost 2>&1` if test $? -ne 0 then echo "Neither host '$hostname' nor 'localhost' could be looked up with" echo "$extra_bindir/resolveip" echo "Please configure the 'hostname' command to return a correct" echo "hostname." echo "If you want to solve this at a later stage, restart this script" echo "with the --force option" exit 1 fi echo "WARNING: The host '$hostname' could not be looked up with resolveip." echo "This probably means that your libc libraries are not 100 % compatible" echo "with this binary MySQL version. The MySQL daemon, mysqld, should work" echo "normally with the exception that host name resolving will not work." echo "This means that you should use IP addresses instead of hostnames" echo "when specifying MySQL privileges !" fi fi if test "$ip_only" -eq 1 then hostname=`echo "$resolved" | awk '/ /{print $6}'` fi # Create database directories for dir in $ldata $ldata/mysql $ldata/test do if test ! -d $dir then mkdir -p $dir chmod 700 $dir fi if test -n "$user" then chown $user $dir if test $? -ne 0 then echo "Cannot change ownership of the database directories to the '$user'" echo "user. Check that you have the necessary permissions and try again." exit 1 fi fi done if test -n "$user" then args="$args --user=$user" fi # When doing a "cross bootstrap" install, no reference to the current # host should be added to the system tables. So we filter out any # lines which contain the current host name. if test $cross_bootstrap -eq 1 then filter_cmd_line="sed -e '/@current_hostname/d'" else filter_cmd_line="cat" fi # Configure mysqld command line mysqld_bootstrap="${MYSQLD_BOOTSTRAP-$mysqld}" mysqld_install_cmd_line="$mysqld_bootstrap $defaults $mysqld_opt --bootstrap \ --basedir=$basedir --datadir=$ldata --log-warnings=0 --loose-skip-innodb \ --loose-skip-ndbcluster $args --max_allowed_packet=8M \ --default-storage-engine=myisam \ --net_buffer_length=16K" # Create the system and help tables by passing them to "mysqld --bootstrap" s_echo "Installing MySQL system tables..." if { echo "use mysql;"; cat $create_system_tables $fill_system_tables; } | eval "$filter_cmd_line" | $mysqld_install_cmd_line > /dev/null then s_echo "OK" else echo echo "Installation of system tables failed! Examine the logs in" echo "$ldata for more information." echo echo "You can try to start the mysqld daemon with:" echo echo " shell> $mysqld --skip-grant &" echo echo "and use the command line tool $bindir/mysql" echo "to connect to the mysql database and look at the grant tables:" echo echo " shell> $bindir/mysql -u root mysql" echo " mysql> show tables" echo echo "Try 'mysqld --help' if you have problems with paths. Using --log" echo "gives you a log in $ldata that may be helpful." echo echo "Please consult the MySQL manual section" echo "'Problems running mysql_install_db', and the manual section that" echo "describes problems on your OS. Another information source are the" echo "MySQL email archives available at http://lists.mysql.com/." echo echo "Please check all of the above before submitting a bug report" echo "at http://bugs.mysql.com/" echo exit 1 fi s_echo "Filling help tables..." if { echo "use mysql;"; cat $fill_help_tables; } | $mysqld_install_cmd_line > /dev/null then s_echo "OK" else echo echo "WARNING: HELP FILES ARE NOT COMPLETELY INSTALLED!" echo "The \"HELP\" command might not work properly." fi # Don't output verbose information if running inside bootstrap or using # --srcdir for testing. In such cases, there's no end user looking at # the screen. if test "$cross_bootstrap" -eq 0 && test -z "$srcdir" then s_echo s_echo "To start mysqld at boot time you have to copy" s_echo "support-files/mysql.server to the right place for your system" echo echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !" echo "To do so, start the server, then issue the following commands:" echo echo "$bindir/mysqladmin -u root password 'new-password'" echo "$bindir/mysqladmin -u root -h $hostname password 'new-password'" echo echo "Alternatively you can run:" echo "$bindir/mysql_secure_installation" echo echo "which will also give you the option of removing the test" echo "databases and anonymous user created by default. This is" echo "strongly recommended for production servers." echo echo "See the manual for more instructions." if test "$in_rpm" -eq 0 then echo echo "You can start the MySQL daemon with:" echo "cd $basedir ; $bindir/mysqld_safe &" echo echo "You can test the MySQL daemon with mysql-test-run.pl" echo "cd $basedir/mysql-test ; perl mysql-test-run.pl" fi echo echo "Please report any problems at http://bugs.mysql.com/" echo fi exit 0