About 1,480,000 results
Open links in new tab
  1. How to execute a MySQL command from a shell script?

    An important consideration for accessing mysql from a shell script used in cron, is that mysql looks at the logged in user to determine a .my.cnf to load. That does not work with cron.

  2. How to show the last queries executed on MySQL?

    Mar 16, 2009 · If mysql binlog is enabled you can check the commands ran by user by executing following command in linux console by browsing to mysql binlog directory mysqlbinlog …

  3. How to create a database from shell command in MySQL?

    Mar 11, 2010 · I'm looking for something like createdb in PostgreSQL or any other solution that would allow me to create database with a help of a shell command. Any hints?

  4. How to connect to MySQL from the command line - Stack Overflow

    Feb 27, 2011 · How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're already in MySQL.

  5. How to select a MySQL database through CLI? - Stack Overflow

    Nov 9, 2023 · I've managed to get into MySQL using the command line terminal, but when I tried to enter some SQL, it said 'no database selected' how do I select a database? my database …

  6. How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · From linux 14.04 to MySql 5.7, using cat command piped with mysql login: cat /Desktop/test.sql | sudo mysql -uroot -p You can use this method for many MySQL commands …

  7. mysql - SQL command to display history of queries - Stack Overflow

    Oct 19, 2011 · I would like to display my executed sql command history in my MYSQL Query Browser. What is the sql statement for displaying history?

  8. How can I access the MySQL command line with XAMPP for …

    If one has left the default so that mysql dbs don't have passwords, then the following command is just slightly faster: /opt/lampp/bin/mysql -uroot Without the "-p" you'll be logged in immediately. …

  9. How do you run a single query through mysql from the command …

    0 From the mysql man page: You can execute SQL statements in a script file (batch file) like this: shell> mysql db_name < script.sql > output.tab Put the query in script.sql and run it.

  10. docker - How to execute MySQL command from the host to …

    To connect to the MySQL database using MySQL command line client. I connect to the bash into the running MySQL container: $ docker exec -t -i container_mysql_name /bin/bash -i is the …