문제

I don't mean the standard mysql-client CLI, but rather something similar to what midnight commander is to filesystem management. The simple command history of the basic cli is not bad but really doesn't cut it when testing more complex query, and the layout of the data isn't that great. PHPMyAdmin is useful and all, but it's ugly and requires a lot of mouse usage.

OS: linux

도움이 되었습니까?

해결책

긍정적 인 LookAhead를 사용하여 wget의 출력 및 파이프를 grep에 직접 똑바로 똑바로 뷰 수를 출력 할 수 있습니다.

wget -q -O- http://youtube.com | grep -oP "[0-9,]+(?=\sviews)"
.

다른 팁

In emacs, there is a build in mode M-x sql-mysql.

You will be prompted for a user name, password, schema name (or database name), and the server name.

From then on, when one opens a .sql file, emacs should bind that .sql file to the SQL buffer associated with the MySQL session.

Inside that mode you can get help with a "Control-H m" keystroke.

There is a family of emacs sql- modes. They all pretty much work the same.

I know this is an old question, but just in case neither of the above solutions have worked for you I would like to recommend Mitzasql - a simple text based Mysql client which gives you a quick read-only access to the database, data manipulation can be done through regular sql queries.

disclaimer - I am the author of said tool.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top