About 50 results
Open links in new tab
  1. 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.

  2. Newest 'mysql' Questions - Stack Overflow

    In MySQL, triggers run automatically on table events, and stored procedures encapsulate reusable logic. I would like to clarify the interaction between these two features.

  3. sql - MySQL query String contains - Stack Overflow

    52 Mine is using LOCATE in mysql: LOCATE (substr,str), LOCATE (substr,str,pos) This function is multi-byte safe, and is case-sensitive only if at least one argument is a binary string. In your case:

  4. MySQL command line client for Windows - Stack Overflow

    Jul 14, 2010 · Is there any nice command line MySQL client for windows? I mean a single exe that allows connecting and running a sample query. I've googled and only could find big graphical …

  5. String concatenation in MySQL - Stack Overflow

    Feb 2, 2018 · I am using MySQL and MySQL Workbench 5.2 CE. When I try to concatenate 2 columns, last_name and first_name, it doesn't work : select first_name + last_name as "Name" from test.student

  6. What does mysql -u root -p do? - Stack Overflow

    Apr 7, 2017 · I am trying to figure out what the mysql -u root -p command does. I have googled the command but I can't find any good results.

  7. How do you use the "WITH" clause in MySQL? - Stack Overflow

    191 MySQL prior to version 8.0 doesn't support the WITH clause (CTE in SQL Server parlance; Subquery Factoring in Oracle), so you are left with using: TEMPORARY tables DERIVED tables …

  8. How can I solve "Error: MySQL shutdown unexpectedly"?

    Aug 3, 2013 · Rename folder mysql/data to mysql/data_old Make a copy of mysql/backup folder and name it as mysql/data Copy all your database folders from mysql/data_old into mysql/data (except …

  9. MySQL: @variable vs. variable. What's the difference?

    Also, MS allows for declares within any block in the procedure, unlike MySQL which requires all the DECLAREs at the top. While good on the command line, I feel using the set = @variable within …

  10. mysql - SQL select only rows with max value on a column - Stack …

    How do I select one row per id and only the greatest rev? With the above data, the result should contain two rows: [1, 3, ...] and [2, 1, ..]. I'm using MySQL. Currently I use checks in the while loop to detect …