I want to execute a text file containing SQL queries, in MySQL.
I tried to run source /Desktop/test.sql
and received the error:
mysql> . \home\sivakumar\Desktop\test.sql ERROR: Failed to open file ‘\home\sivakumar\Desktop\test.sql’, error: 2
Any idea on what I am doing wrong?
Related Posts:
- What does cmd /C mean?
- What does cmd /C mean?
- Using multiple delimiters in awk
- How do I import an SQL file using the command line in MySQL?
- How do I import an SQL file using the command line in MySQL?
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- How can I pass an argument to a PowerShell script?
- Windows 7 Symbolic Link – Cannot create a file when that file already exists
- How do I make a python script executable?
- How to edit a py file from terminal?
- How do you input command line arguments in IntelliJ IDEA?
- How can I find out if I have Xcode commandline tools installed?
- What is the reason for the CD /D switch in Windows cmd?
- phpmyadmin #1045 Cannot log in to the MySQL server. after installing mysql command line client
- git undo all uncommitted or unsaved changes
- npm install multiple package names
- Install oAuth PECL error: Cannot install, php_dir for channel “pecl.php.net” is not writeable by the current user
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- “No such file or directory” but it exists
- How to use mysqli_query() in PHP?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- Error unable to access jarfile C:\Jar
- Node.js version on the command line? (not the REPL)
- How to pretty print XML from the command line?
- Unknown column in ‘field list’ error on MySQL Update query
- Unknown column in ‘field list’ error on MySQL Update query
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Column count doesn’t match value count at row 1
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Undefined function mysql_connect()
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- MySQL column count doesn’t match value count at row 1 [closed]
- MySQL string replace
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- How to find which version of TensorFlow is installed in my system?
- Cannot add or update a child row: a foreign key constraint fails
- Undefined function mysql_connect()
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Fatal error: Call to undefined function mysql_connect()
- String concatenation in MySQL
- Should I use mysqli_real_escape string() or mysql_real_escape_string() for form data?
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- What’s the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? [duplicate]
- MySQL – Operand should contain 1 column(s)
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- MySQL “CREATE TABLE IF NOT EXISTS” -> Error 1050
- Cannot add or update a child row: a foreign key constraint fails
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error “Operand should contain 1 column”
- MySQL create table if not exists and insert record only if table was created
- How do I copy a folder from remote to local using scp?
- Rename a table in MySQL
- Can’t connect to MySQL server on ‘localhost’ (10061) after Installation
- getting error HTTP Status 405 – HTTP method GET is not supported by this URL but not used `get` ever?
- How to use MySQL DECIMAL?
- Access denied for user ‘root@localhost’ (using password:NO)
- How should I tackle –secure-file-priv in MySQL?
- How do I use MySQL through XAMPP?
- Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’ (38)
- How to make MySQL table primary key auto increment with some prefix
- Access denied for user ‘root@localhost’ (using password:NO)
- MySQL ERROR 1290 (HY000) –secure-file-priv option
- How do I use properly CASE..WHEN in MySQL
- How do I parse command line arguments in Bash?
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Fatal error: Call to undefined function mysql_connect()
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- syntax error when using command line in python
- https connection using CURL from command line
- MySQL error 2006: mysql server has gone away
- Which MySQL data type to use for storing boolean values
- How can I do a FULL OUTER JOIN in MySQL?
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- sql query with multiple where statements
- Fatal error: Call to undefined function mysql_connect()
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- syntax error when using command line in python
- How to install JQ on Mac on the command line?
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- MySQL query String contains
- ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- What’s the difference between VARCHAR and CHAR?
- Cannot delete or update a parent row: a foreign key constraint fails
- Cannot delete or update a parent row: a foreign key constraint fails
- What is the error “Every derived table must have its own alias” in MySQL?
- ERROR 2003 (HY000): Can’t connect to MySQL server on localhost (10061)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Case statement in MySQL
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- MySQL server startup error ‘The server quit without updating PID file’
- Create an empty file on the commandline in windows (like the linux touch command)
- Rename a column in MySQL