现在的位置: 首页 > 综合 > 正文

进入mysql命令行管理模式

2013年09月02日 ⁄ 综合 ⁄ 共 283字 ⁄ 字号 评论关闭
第一个命令是设定密码的
 [root@localhost lib]# mysqladmin -uroot password '123456'
然后就可以登录了,
[root@localhost lib]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3 to server version: 4.1.11

Type 'help;' or '/h' for help. Type '/c' to clear the buffer
这时提示符就变成了
mysql>
进入数据库了!

抱歉!评论已关闭.