终端中快捷登录 MySQL
source link: https://mednoter.com/mysql-shortcuts.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
终端中快捷登录 MySQL
以前在终端中登录MySQL,需要输入这么长的一堆命令。
> mysql -u root -p
> please enter your password
> ******
在用户的根目录下添加了一个文件后,我只需要输入mysql,就可自动登录了。
> mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 100
Server version: 5.6.10 Source distribution
mysql>
怎么实现?
-
创建~/.my.cnf
-
将权限修改为 600
-
[mysql]
user=root
password=pass
host=localhost[mysqldump]
user=root
password=pass
host=localhost[mysqldiff]
user=root
password=pass
host=localhost
参考资料:
Recommend
-
57
库克承诺的电池管理功能也来了。
-
62
目前,这一功能支持北京和上海两地的地铁和公交车,在上海还额外支持轮渡和磁悬浮。
-
62
简单快捷的数据处理,数据科学需要注意的命令行
-
38
4月18日,申通快递突然宣布暂停申通快运运营,项目合作方快捷快递还来不及反应,便如热锅上的蚂蚁,奄奄一息。 消息称“这一突发事件致使快捷快递生产经营陷入破产边缘,网络运营则面临更为严峻的形势。”随后,快捷快递开启了与申...
-
88
即日起至2018年8月25日,建设银行卡(含借记卡及信用卡)用户,每日上午10点开始,在京东商城(PC和移动端)购买实物商品,使用建设银行快捷支付功能进行...
-
48
-
10
MySQL之终端(Terminal)管理MySQL 前言:MySQL有很多的可视化管理工具,比...
-
6
Armin's Blog【MacOS+Zsh】如何快捷地在终端打开当前 Finder 目录May 27, 2017首先添加 zsh 插件 osx,如图:
-
4
技术 通过Mysql修改Ghost的登录密码 作者 youngbeom 7 天...
-
4
ITerm2快捷登录 | 是潘达呀ITerm2快捷登录 发表于 2018-09-19 | 分类于 开发 | | 浏览4 次 | 字数统计: 509 | 阅读时长 ≈ 2windows里有个Xshell非常的方便好使,因为它...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK