当前第2页 返回上一页
mysql登录的方式是这样的:
1 2 3 4 5 6 | [root@crmtestdb root]#mysql -u root -h 127.0.0.1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.0.45-community MySQL Community Edition (GPL)
Type '' help; '' or '' \h '' for help. Type '' \c '' to clear the buffer.
mysql>
|
如果有密码的话,登录方式为:
1 | mysql -u root -h 127.0.0.1 -p
|
至于该使用哪个数据库,使用哪个,应该是这样:
1 2 3 4 5 6 7 8 9 10 11 12 13 | mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
| wt |
+--------------------+
4 rows in set (0.00 sec)
mysql> use test
Database changed
mysql>
|
以上就是linux怎么登录mysql的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
使用磁盘的历史快照怎么回滚至某一阶段的磁盘状态
如何为一块或者多块磁盘应用自动快照策略
如何查看Linux的内存
Linux什么是编译
Linux系统怎么搭建ftp服务器
Linux实现时间同步有哪几种方法
Linux怎么连接
(一)在Linux上安装和编译opencv3.0.0
Linux查看进程命令是什么
Linux中配置ip提示文件夹权限不够的解决方法有哪些
更多相关阅读请进入《Linux》频道 >>
转载请注明出处:木庄网络博客 » linux怎么登录mysql