Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

mysqlcommand

Finding when MySQL event last ran

December 21, 2023 by Tarik

This information is available through events in INFORMATION_SCHEMA. See LAST_EXECUTED column: SELECT * FROM INFORMATION_SCHEMA.events; You can also use SHOW CREATE EVENT yourevent to see what it does.

Categories mysql Tags database, mysql, mysql-command-line-client, mysql-event, mysqlcommand Leave a comment

Show the current username in MySQL?

November 11, 2023 by Tarik

Try to run either SELECT USER(); or SELECT CURRENT_USER(); It can sometimes be different, USER() will return by which login you attempted to authenticate and CURRENT_USER() will return how you were actually allowed to authenticate.

Categories sql Tags database, mysql, mysql-command-line-client, mysqlcommand, sql Leave a comment

How to select a MySQL database through CLI?

November 11, 2023 by Tarik

Use USE. This will enable you to select the database. USE photogallery; 12.8.4: USE Syntax You can also specify the database you want when connecting: $ mysql -u user -p photogallery

Categories mysql Tags database, mysql, mysql-cli, mysql-command-line-client, mysqlcommand Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa