cheese-shop/sql/ctl.sql

13 lines
265 B
MySQL
Raw Normal View History

2020-07-04 11:04:53 +02:00
USE mysql;
2020-07-04 18:05:06 +02:00
DROP USER IF EXISTS wensleydale@localhost;
2020-07-04 11:04:53 +02:00
CREATE USER wensleydale@localhost
IDENTIFIED BY '';
GRANT ALL PRIVILEGES ON cheese_shop.*
2020-07-04 18:05:06 +02:00
TO wensleydale@localhost;
2020-07-04 11:04:53 +02:00
UPDATE user SET plugin='mysql_native_password' WHERE User='wensleydale';
FLUSH PRIVILEGES;