Home > Database > Mysql Tutorial > body text

阶段总结shell如何访问mysql

WBOY
Release: 2016-06-07 15:59:14
Original
1101 people have browsed it

还是之前的项目,需要一个脚本管理mysql, 本来是用C写了一个,因为当时对于shell一头雾水啊,后来发现C相对于shell还是不方便, 毕竟shell改起来超快超简单啊啊啊啊啊,最后愣是自学shell,现学现卖把这个活儿搞定了, 哈哈哈,成功的锻炼了自己的自学能力

还是之前的项目,需要一个脚本管理mysql,

本来是用C写了一个,因为当时对于shell一头雾水啊,后来发现C相对于shell还是不方便,

毕竟shell改起来超快超简单啊啊啊啊啊,最后愣是自学shell,现学现卖把这个活儿搞定了,

哈哈哈,成功的锻炼了自己的自学能力,

下面就简单举个例子,让大家看看怎么用shell来操作mysql,

免得大家再去踩地雷,走弯路,

下面这段例子是查询mysql中mysql数据库的user表的host,user,password;

代码如下,有什么问题,欢迎大家留言,大家一起讨论学习:


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!