在英文官方看指导,他说的这段该如何运行?

软件和网站开发以及相关技术探讨
回复
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

在英文官方看指导,他说的这段该如何运行?

#1

帖子 relaxssl » 2008-05-08 3:54

Set a mysql-root password (not the same as a root password, but a password for mysql)

mysql -u root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
mysql> SET PASSWORD FOR 'root'@'yourhostname' = PASSWORD('yourpassword');
直接在终端输入mysql -u root回车么?好像不行的。
头像
augus
帖子: 57
注册时间: 2007-01-13 14:39

#2

帖子 augus » 2008-05-08 14:24

加上 -p 参数试试。
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

#3

帖子 relaxssl » 2008-05-08 19:30

augus 写了:加上 -p 参数试试。
能够具体一点呢?加在什么地方?
头像
solcomo
帖子: 2838
注册时间: 2007-04-25 13:12

#4

帖子 solcomo » 2008-05-08 19:34

mysql -u root -p
♜♞♝♛♚♝♞♜
♟♟♟♟♟♟♟♟
♙♙♙♙♙♙♙♙
♖♘♗♕♔♗♘♖

☠☯⚔⚓☣☦☃☕
☹☻☪☭☬⚖⚛⚜
ℜℳℬ™ ℋℯℓ℘ ℳℭ
sƂɐʍ рǀɹoʍ əɥʇ oS
回复