Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-db/hack/00-create-testdb-user.sql
2500 views
1
-- Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2
-- Licensed under the GNU Affero General Public License (AGPL). See License.AGPL.txt in the project root for license information.
3
4
5
-- create test DB user
6
SET @gitpodDbPassword = IFNULL(@gitpodDbPassword, 'test');
7
8
SET @statementStr = CONCAT(
9
'CREATE USER IF NOT EXISTS "gitpod"@"%" IDENTIFIED BY "', @gitpodDbPassword, '";'
10
);
11
SELECT @statementStr ;
12
PREPARE stmt FROM @statementStr; EXECUTE stmt; DEALLOCATE PREPARE stmt;
13
14