Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
provision
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
provision
Commits
5b1f9d26
Commit
5b1f9d26
authored
Nov 22, 2008
by
Adrian Rossouw
Committed by
adrian
Nov 22, 2008
Browse files
Options
Downloads
Patches
Plain Diff
Remove old_password for mysql 3.x.
parent
20196053
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
db_server/provision.mysql.inc
+0
-12
0 additions, 12 deletions
db_server/provision.mysql.inc
with
0 additions
and
12 deletions
db_server/provision.mysql.inc
+
0
−
12
View file @
5b1f9d26
...
...
@@ -25,12 +25,6 @@ function _provision_mysql_new_site_db($db_name, $db_user, $db_passwd, $db_host)
provision_log
(
"warning"
,
"Could not GRANT user access."
);
}
if
(
$data
[
'site_mysql_old_passwords'
])
{
if
(
!
_provision_mysql_old_password
(
$db_user
,
$db_passwd
)
||
!
_provision_mysql_old_password
(
$db_user
,
$db_passwd
,
$db_host
))
{
provision_log
(
"warning"
,
"Could not set old passwords for user"
);
}
}
$status
=
_provision_mysql_database_exists
(
$db_name
);
provision_set_active_db
();
...
...
@@ -111,16 +105,10 @@ function _provision_mysql_revoke($name, $username, $host = '') {
return
db_query
(
"REVOKE ALL PRIVILEGES ON `%s`.* FROM `%s`@`%s`"
,
$name
,
$username
,
$host
);
}
function
_provision_mysql_old_password
(
$username
,
$password
,
$host
=
''
)
{
$host
=
(
$host
)
?
$host
:
'%'
;
return
db_query
(
"SET PASSWORD FOR '%s'@'%s' = OLD_PASSWORD('%s')"
,
$username
,
$host
,
$password
);
}
function
_provision_master_db_url
(
$data
=
array
())
{
return
sprintf
(
"%s://%s:%s@%s/mysql"
,
PROVISION_DB_TYPE
,
PROVISION_DB_USER
,
PROVISION_DB_PASSWD
,
PROVISION_DB_HOST
);
}
function
_provision_mysql_import_dump
(
$dump_file
,
$db_name
,
$db_user
,
$db_passwd
,
$db_host
)
{
$exists
=
provision_path
(
"exists"
,
$dump_file
,
TRUE
,
t
(
'Found database dump at @path.'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment