Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
provision
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
provision
Commits
5b1f9d26
Commit
5b1f9d26
authored
Nov 22, 2008
by
Adrian Rossouw
Committed by
adrian
Nov 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove old_password for mysql 3.x.
parent
20196053
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
db_server/provision.mysql.inc
db_server/provision.mysql.inc
+0
-12
No files found.
db_server/provision.mysql.inc
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.'
),
...
...
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