centos安装mysql
1 |
|
mysql无法登陆
1 |
|
导出csv文件
1 |
|
导出数据库
1 | mysqldump -uroot -ppassword dbname > dbname-backup-$(date +%Y%m%d).sql |
授权并创建用户
1 | grant all on dbname.* to root@'localhost' identified by 'pass'; |
删除用户
1 | drop user user@'%'; |
1 |
|
1 |
|
1 |
|
1 | mysqldump -uroot -ppassword dbname > dbname-backup-$(date +%Y%m%d).sql |
1 | grant all on dbname.* to root@'localhost' identified by 'pass'; |
1 | drop user user@'%'; |