sql,CREATE DATABASE my_database;,
`,接着创建用户并赋予权限:,
`sql,CREATE USER 'my_user'@'localhost' IDENTIFIED BY 'password';,GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost';,
`,使用以下命令连接到新创建的数据库:,
`sql,mysql -u my_user -p password my_database;,
``