how to load data files into tables with 'mysqlimport'? : Sql dba
Answer / Indrajeet
To load data files into tables using mysqlimport, you can follow these steps:
1. Install mysqlimport on your system if it is not already installed.
2. Navigate to the directory containing your SQL file.
3. Run the command: `mysqlimport --local --user=username --password=password --host=localhost database_name tablename filename` where username and password are your MySQL credentials, localhost is the host name of your MySQL server, database_name is the name of the database to which you want to import the data, tablename is the name of the table into which you want to load the data, and filename is the name of the SQL file containing the data.
4. If the import is successful, you will see a message saying 'Number of rows: xxx', where xxx is the number of rows in your data file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can a table contain multiple primary key’s?
Does SQL*Plus contains pl/sql Engine?
what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba
cursor types? explain with example programs?
What is pls integer?
Why select is used in sql?
What is lexical units in pl sql?
How does a trigger work?
What are the different types of tables in sql?
explain normalization concept? : Sql dba
What is the difference between stored procedure and view?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)