Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE DATABASE `final` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
- DROP DATABASE final;
- CREATE USER 'fanwu'@'%' IDENTIFIED BY '123456';
- GRANT ALL PRIVILEGES ON final.* TO 'fanwu';
- FLUSH PRIVILEGES ;
- # Modify root password
- use mysql;
- update user set password=PASSWORD("mynewpassword") where User='root';
- flush privileges;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement