mysql -uroot -p —default-character-set=utf8 database
mysql> SET names ‘utf8’
mysql> SOURCE utf8.dump
mysql -uroot -p —default-character-set=utf8 database
mysql> SET names ‘utf8’
mysql> SOURCE utf8.dump
Add user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON database.* TO 'username'@'localhost' IDENTIFIED BY 'password';FLUSH PRIVILEGES;
Update users passwordALTER USER 'user-name'@'localhost' IDENTIFIED BY 'NEW_USER_PASSWORD'; FLUSH PRIVILEGES;
Powered by WordPress