linux安装mysql


    chown -R mysql:mysql /use/lib/data chmod -R 777 /user/lib/data 跳过密码安全模式更改密码 1405 错误码 my.cnf 加入skip-grant-tables update mysql.user set authentication_string=password('root') where user='root' ; 1820 错误码:执行 SET PASSWORD = PASSWORD('新密码'); 1049 错误码:my.cnf 设置 lower_case_table_names 0,1,3 1. 设置成0:表名按你写的SQL大小写存储,大写就大写小写就小写,比较时大小写敏感。  2. 设置成1:表名转小写后存储到硬盘,比较时大小写不敏感。   3. 设置成2:表名按你写的SQL大小写存储,大写就大写小写就小写,比较时统一转小写比较。    2.授权所有IP grant all privileges on *.* to root@"%" identified by '密码' with grant option; flush privileges;   3.当前用户给指定数据库新增用户 grant all privileges on ecsoft.* to '用户名'@'%' identified by '密码' with grant option; flush privileges;