Mariadb使用总结
一、pt-quert-digest使用
1、安装perl程序
1 2 | yum -y install perl-Time-HiRes yum -y install perl-DBI |
二、登录授权
1 2 3 4 5 6 7 8 9 | service mysqld stop /usr/bin/mysqld_safe --skip-grant-tables & use mysql; update user set password=password( 'yournewpasswordhere' ) where user= 'root' ; flush privileges; exit ; #远程访问access denied GRANT ALL PRIVILEGES ON *.* TO 'root' @ '%' IDENTIFIED BY 'admina' WITH GRANT OPTION; flush privileges; |
三、常见用法
1、分组拼接(GROUP_CONCAT)
四、中文乱确解决
1 2 3 4 5 | net stop mysql mysqld —remove mysqld — install MySQL —defaults- file =D: /Mysql/my .ini net start mysql #表要重新建 |