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
c083a8fd
Commit
c083a8fd
authored
Mar 27, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.blaudden:/home/msvensson/mysql/bug27022/my50-bug27022
into pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
parents
2490731d
cf0e52ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+11
-17
No files found.
scripts/mysql_install_db.sh
View file @
c083a8fd
...
...
@@ -135,6 +135,17 @@ else
fi
fi
# Check that no previous MySQL installation exist
if
test
-f
"
$ldata
/mysql/db.frm"
then
echo
"FATAL ERROR: Found already existing MySQL system tables"
echo
"in
$ldata
."
echo
"If you are upgrading from a previous MySQL version you"
echo
"should run '
$bindir
/mysql_upgrade', "
echo
"to upgrade all tables for this version of MySQL"
exit
1
;
fi
# Find SQL scripts needed for bootstrap
fill_help_tables
=
"fill_help_tables.sql"
create_system_tables
=
"mysql_system_tables.sql"
...
...
@@ -181,7 +192,6 @@ then
fi
# Find executables and paths
mdata
=
$ldata
/mysql
mysqld
=
$execdir
/mysqld
mysqld_opt
=
""
scriptdir
=
$bindir
...
...
@@ -264,12 +274,6 @@ if test -w / -a ! -z "$user"; then
chown
$user
$ldata
$ldata
/mysql
$ldata
/test
;
fi
# Check is "db" table already exist
if
test
!
-f
$mdata
/db.frm
then
db_table_already_exist
=
"yes"
fi
if
test
-n
"
$user
"
;
then
args
=
"
$args
--user=
$user
"
fi
...
...
@@ -322,16 +326,6 @@ then
echo
"
$bindir
/mysqladmin -u root -h
$hostname
password 'new-password'"
echo
"See the manual for more instructions."
# Print message about upgrading unless we have created a new db table.
if
test
-z
"
$db_table_already_exist
"
then
echo
echo
"NOTE: If you are upgrading from a previous MySQL verision you "
echo
"should run '
$bindir
/mysql_upgrade', to make sure all tables have "
echo
"been upgraded for this version of MySQL"
fi
echo
if
test
"
$in_rpm
"
=
"0"
then
echo
"You can start the MySQL daemon with:"
...
...
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