当前第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下怎么通过命令行方式获取ip
Linux u盘乱码怎么办
Linux用户管理(1)之创建用户和删除用户的图文教程
Linux怎么粘贴
Linux chown命令有什么用
Linux下如何用iptables开放指定端口
Linux怎么查看ip
Linux下配置网络参数有哪两种方式
Linux可用更新源
Linux 挂载 fat32 和 ntfs格式u盘实例教程
更多相关阅读请进入《Linux》频道 >>
转载请注明出处:木庄网络博客 » linux怎么登录mysql