经典MYSQL语句大全-非常有用

SQL分类:
DDL—数据定义语言(Create,Alter,Drop,DECLARE)
DML—数据操纵语言(Select,Delete,Update,Insert)
DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)

Read the rest of this entry »

Tags: ,
| Posted in 服务器OS | No Comments »

MySQL更改/修改root密码的三种方法

第一种:
mysql>UPDATE user SET Password=PASSWORD(‘new_password’) WHERE user=’root’;
mysql>FLUSH PRIVILEGES;

第二种:
mysql>SET PASSWORD FOR root=PASSWORD(‘new_password’);

第三种:
shell>mysqladmin -u root password new_password;

Tags:
| Posted in 服务器OS | No Comments »