mirror of
https://github.com/boostorg/mysql.git
synced 2025-05-12 14:11:41 +00:00
31 lines
1.3 KiB
SQL
31 lines
1.3 KiB
SQL
--
|
|
-- Copyright (c) 2019-2025 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
|
|
--
|
|
-- Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
--
|
|
|
|
USE boost_mysql_integtests;
|
|
|
|
-- Setup that requires the presence of SHA256 functionality
|
|
-- This one is used for unknown authentication plugin tests
|
|
DROP USER IF EXISTS 'sha2p_user'@'%';
|
|
CREATE USER 'sha2p_user'@'%' IDENTIFIED WITH 'sha256_password';
|
|
ALTER USER 'sha2p_user'@'%' IDENTIFIED BY 'sha2p_password';
|
|
GRANT ALL PRIVILEGES ON boost_mysql_integtests.* TO 'sha2p_user'@'%';
|
|
|
|
-- User that uses caching_sha2_password plugin
|
|
DROP USER IF EXISTS 'csha2p_user'@'%';
|
|
CREATE USER 'csha2p_user'@'%' IDENTIFIED WITH 'caching_sha2_password';
|
|
ALTER USER 'csha2p_user'@'%' IDENTIFIED BY 'csha2p_password';
|
|
GRANT ALL PRIVILEGES ON boost_mysql_integtests.* TO 'csha2p_user'@'%';
|
|
|
|
-- User that uses caching_sha2_password plugin with an empty password
|
|
DROP USER IF EXISTS 'csha2p_empty_password_user'@'%';
|
|
CREATE USER 'csha2p_empty_password_user'@'%' IDENTIFIED WITH 'caching_sha2_password';
|
|
ALTER USER 'csha2p_empty_password_user'@'%' IDENTIFIED BY '';
|
|
GRANT ALL PRIVILEGES ON boost_mysql_integtests.* TO 'csha2p_empty_password_user'@'%';
|
|
|
|
|
|
FLUSH PRIVILEGES;
|