Hi,
I have a MySQL .sql file that contains not only a single table but several,
its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be
able to handle complete databases, each table has to have it's own
textfile... or am I wrong there?
if yes, what would be the typical command?
thanks
Oliver 6 1764
Oliver Spiesshofer wrote: Hi,
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there?
if yes, what would be the typical command?
If you have created database already then for example:
mysql -u root -p databasename < yoursqlfile.sql
Oliver Spiesshofer wrote: Hi,
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there?
if yes, what would be the typical command?
If you have created database already then for example:
mysql -u root -p databasename < yoursqlfile.sql
Oliver Spiesshofer wrote: Hi,
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there?
if yes, what would be the typical command?
If you have created database already then for example:
mysql -u root -p databasename < yoursqlfile.sql
On Mon, 09 Feb 2004 13:07:54 GMT, Oliver Spiesshofer
<ol****@email.com> wrote: Hi,
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there?
MySqlImport is intended for data-dump files (containing delimited
data), not sql script files.
To make the Mysql client run a sql script, from inside the client, do
mysql> source myscript.sql;
Chuck Gadd http://www.csd.net/~cgadd/aqua
On Mon, 09 Feb 2004 13:07:54 GMT, Oliver Spiesshofer
<ol****@email.com> wrote: Hi,
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there?
MySqlImport is intended for data-dump files (containing delimited
data), not sql script files.
To make the Mysql client run a sql script, from inside the client, do
mysql> source myscript.sql;
Chuck Gadd http://www.csd.net/~cgadd/aqua
On Mon, 09 Feb 2004 13:07:54 GMT, Oliver Spiesshofer
<ol****@email.com> wrote: Hi,
I have a MySQL .sql file that contains not only a single table but several, its a dump from a complete database.
How can I import that back into a MySQL Server? MySQLImport seems not to be able to handle complete databases, each table has to have it's own textfile... or am I wrong there?
MySqlImport is intended for data-dump files (containing delimited
data), not sql script files.
To make the Mysql client run a sql script, from inside the client, do
mysql> source myscript.sql;
Chuck Gadd http://www.csd.net/~cgadd/aqua This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alexander Pope |
last post by:
Is there some some standard for this type of database issue?
We have an internet application. db2 aix v8.1. was5.0.
Our customers want to be able to "upload" or "import" data into our
database....
|
by: TheElectron707 |
last post by:
Hi! I have a scenario in which i am importing a VERY LARGE database
over the network. (Linking is not my solution). Now it takes many
hours to import the complete database. I want that once the...
|
by: Mark |
last post by:
All,
As you can see below, I have had problems with inquisitive souls looking
at data they shouldn't be. I though disabling the ability to create new
databases using my workgroup would stop this...
|
by: dixie |
last post by:
If I sent a user an empty database container - dB with no tables and I
needed them to import their tables into it and one of their tables was a
hidden table with the prefix Usys, is there any way...
|
by: Snozz |
last post by:
The short of it:
If you needed to import a CSV file of a certain structure on a regular
basis(say 32 csv files, each to one a table in 32 databases), what
would be your first instinct on how to...
|
by: John |
last post by:
I have a data file with proprietary database formatting from an old DOS programme and want to
extract data from it and import it into SQL Server Express using C# Express. I've managed to work
out...
|
by: madeleine.macphail |
last post by:
All
I'm currently attempting to move us from a spreadsheet based system to
a database system. The first phase is to import the data on a regular
basis from the spreadsheets to get the database...
|
by: JMO |
last post by:
I can import a csv file with no problem. I can also add columns to the
datagrid upon import. I want to be able to start importing at the 3rd
row. This will pick up the headers necessary for the...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |