Files

8 lines
372 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 创建 ocean 专用数据库用户(解决 root@localhost 的 Access denied
-- 执行:sudo mysql < backend/scripts/create_db_user.sql
-- 然后将 backend/.env 中 MYSQL_USER=ocean, MYSQL_PASSWORD=你设置的密码
CREATE USER IF NOT EXISTS 'ocean'@'localhost' IDENTIFIED BY 'ocean123';
GRANT ALL PRIVILEGES ON ocean.* TO 'ocean'@'localhost';
FLUSH PRIVILEGES;