本文主要是介绍进入mysql命令行管理模式,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
第一个命令是设定密码的[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>
进入数据库了!
这篇关于进入mysql命令行管理模式的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!