Home > Database > Mysql Tutorial > 给mysql的root创建密码_MySQL

给mysql的root创建密码_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:40:55
Original
985 people have browsed it

bitsCN.com
给mysql的root创建密码 mysql> SET PASSWORD FOR 'root' @ 'localhost' = PASSWORD ( 'newpass' );#给root创建一个密码mysql> mysqladmin -uroot password ab12  #同上mysql> mysqladmin –u用户名 -p旧密码 password 新密码;#修改root密码    mysql> create database 库名;#创建一个数据库mysql> show databases;#查看库mysql> 录入 grant all privileges on DB.* to test@localhost 
 identified by "1234" ; #增加一个用户test密码为1234,让他只可以在local
  bitsCN.com

Related labels:
Statement of this Website
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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template