Home  >  Article  >  Database  >  mysql常用的技巧_MySQL

mysql常用的技巧_MySQL

WBOY
WBOYOriginal
2016-06-01 13:48:18781browse

bitsCN.com

1.输入原密码。接着设置新密码

代码:mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');

2.若你想新建一个具有所有权限的新用户

代码:GRANT ALL PRIVILEGES ON *.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn