About 10,300,000 results
Open links in new tab
  1. mysql - SQL split values to multiple rows - Stack Overflow

    1 The original question was for MySQL and SQL in general. The example below is for the new versions of MySQL. Unfortunately, a generic query that would work on any SQL server is not possible. Some …

  2. How can I import an SQL file using the command line in MySQL?

    Jul 10, 2019 · I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line. I have a Windows Server 2008 R2 installation. I placed the .sql file on the C ...

  3. sql - MySQL query String contains - Stack Overflow

    it appears the author wanted to construct the MySQL query using PHP. Since the question was asked 12 years ago, current practice would be to use preprepared statements to prevent SQL injection.

  4. How do I restore a dump file from mysqldump? - Stack Overflow

    I was given a MySQL database file that I need to restore as a database on my Windows Server 2008 machine. I tried using MySQL Administrator, but I got the following error: The selected file was

  5. sql - MySQL Error: : 'Access denied for user 'root'@'localhost' - Stack ...

    Hello, I had the same problem. I did the above, and it solve the problem, but everytime I reboot CentOS, I need to do all of the steps again (I got the message:Access denied for user 'root'@'localhost' (using …

  6. 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 …

  7. sql - How to reset AUTO_INCREMENT in MySQL - Stack Overflow

    Jan 19, 2012 · How can I reset the AUTO_INCREMENT of a field? I want it to start counting from 1 again.

  8. command line - How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · From Workbench: File > Run SQL Script -- then follow prompts From Windows Command Line: Option 1: mysql -u usr -p mysql> source file_path.sql Option 2: mysql -u usr -p '-e …

  9. sql - Rename a column in MySQL - Stack Overflow

    I am trying to rename a column in MySQL community server 5.5.27 using this SQL expression: ALTER TABLE table_name RENAME COLUMN old_col_name TO new_col_name; I also tried ALTER …

  10. sql - mysql - How to grant read only permissions to a user? - Stack ...

    I have a mysql user, whom I want to grant all the READ permission on a db schema. One way is this : GRANT SELECT, SHOW_VIEW ON test.* TO 'readuser'@'%'; Is there a way to group all read …