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
09560c65
Commit
09560c65
authored
Oct 04, 2007
by
jperkin@production.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge production.mysql.com:/usersnfs/jperkin/bk/build/5.0
into production.mysql.com:/usersnfs/jperkin/bk/build/5.1
parents
6598c8dc
583a3ef3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-0
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+9
-0
scripts/mysql_system_tables_data.sql
scripts/mysql_system_tables_data.sql
+2
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
09560c65
...
@@ -3082,6 +3082,7 @@ sub install_db ($$) {
...
@@ -3082,6 +3082,7 @@ sub install_db ($$) {
mtr_appendfile_to_file
("
$path_sql_dir
/fill_help_tables.sql
",
mtr_appendfile_to_file
("
$path_sql_dir
/fill_help_tables.sql
",
$bootstrap_sql_file
);
$bootstrap_sql_file
);
# Remove anonymous users
mtr_tofile
(
$bootstrap_sql_file
,
mtr_tofile
(
$bootstrap_sql_file
,
"
DELETE FROM mysql.user where user= '';
");
"
DELETE FROM mysql.user where user= '';
");
...
...
scripts/mysql_install_db.sh
View file @
09560c65
...
@@ -407,7 +407,16 @@ then
...
@@ -407,7 +407,16 @@ then
echo
"To do so, start the server, then issue the following commands:"
echo
"To do so, start the server, then issue the following commands:"
echo
"
$bindir
/mysqladmin -u root password 'new-password'"
echo
"
$bindir
/mysqladmin -u root password 'new-password'"
echo
"
$bindir
/mysqladmin -u root -h
$hostname
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."
echo
"See the manual for more instructions."
echo
if
test
"
$in_rpm
"
-eq
0
-a
"
$source_install
"
-eq
0
if
test
"
$in_rpm
"
-eq
0
-a
"
$source_install
"
-eq
0
then
then
...
...
scripts/mysql_system_tables_data.sql
View file @
09560c65
...
@@ -17,5 +17,7 @@ CREATE TEMPORARY TABLE tmp_user LIKE user;
...
@@ -17,5 +17,7 @@ CREATE TEMPORARY TABLE tmp_user LIKE user;
INSERT
INTO
tmp_user
VALUES
(
'localhost'
,
'root'
,
''
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
''
,
''
,
''
,
''
,
0
,
0
,
0
,
0
);
INSERT
INTO
tmp_user
VALUES
(
'localhost'
,
'root'
,
''
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
''
,
''
,
''
,
''
,
0
,
0
,
0
,
0
);
REPLACE
INTO
t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y'
,
'Y'
,
'Y'
,
''
,
''
,
''
,
''
,
0
,
0
,
0
,
0
);
INSERT
INTO
tmp_user
(
host
,
user
)
VALUES
(
'localhost'
,
''
);
INSERT
INTO
tmp_user
(
host
,
user
)
VALUES
(
@@
hostname
,
''
);
INSERT
INTO
user
SELECT
*
FROM
tmp_user
WHERE
@
had_user_table
=
0
;
INSERT
INTO
user
SELECT
*
FROM
tmp_user
WHERE
@
had_user_table
=
0
;
DROP
TABLE
tmp_user
;
DROP
TABLE
tmp_user
;
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