msyql: mysql rpm安装手记

查看已经安装的包

rpm -qa|grep -i mysql

 

卸载刚才查到的包

rpm -ev packagename

 

安装mysql

rpm -ivh MySQL-server-xx.rpm MySQL-client-xx.rpm MySQL-devel-xx.rpm

 

然后按照指示做就好了

 

添加权限

grant all on database.* to user@host identified by "pass"

给用户user添加xx权限

你可能感兴趣的:(mysql)