Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Importing .sql File In SQL 3.23 On Linux 7.1 Server


I've got a .sql file and was going to import it into mysql.
The file contains around 30000 data but after i've typed:

mysql> source /xx/file_name.sql;

Table of the sql file is created but contains no data. But it poped an error notice without any message:

ERROR: <----like this

the .sql file is version 4.0. Is there any problems on version 3.23 while importing a v4.0 file? If so, could any brother please help on resolving this problem?




View Complete Forum Thread with Replies

Related Forum Messages:
Linux Server V/s Windows Server ( WebServer - LAMP V/s WAMP)
My client wants to use WAMP ( Windows + apache + MySQL + PHP ). But the
site performance is very slow on windows. I dont know the exact
reasons.

I have seen some benchmark details on internet. But still they are not
having concrete facts to support LAMP as a better alternative to WAMP.
Allmost all the search done on google melts down to IIS vs Apache, My
main concern is "Apache on LINUX" v/s "Apache on Windows" and similarly
for PHP/MySQL.

View Replies !
In My Linux Server
What is the default server SQL mode when My SQL 5.0 is installed? Is there any available modes.

View Replies !
DML Of On Linux Server
We have MySQL 5 installed on Linux server.

If I defined a table and fields in mixed cases, the table name will be stored in lower case, how about the fields?

In the case of SELECT, UPDATE or other DML, do I need to use lower case for the table name and field names?

Or do they matter?

View Replies !
Importing From CSV File
I have a pretty small CSV file with 12 columns and about 150 rows. Some of the fields have names which have commas in them like this, John R. Smith, Jr. So I can't use commas a delimiter. Excel adds "" around the field swith a comma or period in them. What can I do to get around this and bulk import this data into my table?

View Replies !
Importing Sql-file
I'm trying to make a database and a user and importing an .sql-file. I use the next commands:

mysql > CREATE DATABASE tomdb;
mysql > CREATE USER 'tom'@'localhost' IDENTIFIED BY 'tomsql';
mysql > GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'tom'@'localhost';

when i then try this from the terminal:

mysql -utom -ptomsql tomdb < TomBackUp01032009.sql

I'm getting
ERROR 1044 (42000) at line 21: Access denied for user 'tom'@'localhost' to database 'tomdb'

View Replies !
Importing A .sql File?
I have very little experence with mysql. i receved a backup file from my ISP of the db i was using. (filename.sql). I just installed mysql 5.0 on a server here and want to import this backup file to the server here. Is there step by step directions for doing this ? or can some one help my import the file.

View Replies !
Read The Contents Of A File In Linux
What is the shell command if I want to read the contents of .my.cnf file?

View Replies !
MYSQL Server In Linux
I have a SQL server on a Linux Fedora machine and I try to use a GUI to
connect to database
I used different GUI like "Toad for MySQL"
in connection page I put Linux IP address as "Server host" and
username/password I keep getting error:
Error No. 2003 Can't connect to MySQL server on '192.168.0.121' (10061)

My question is: Do I need a client installation or configuration on Windows
machine?

View Replies !
MySQL Server On Linux
I have MySQL server running fine on Linux Server(Ubuntu 6.06LTS). I need to connect Windows workstations to the MySQL server. I installed MySQL ODBC 3.51.14 driver on it.
When i try to connect the ODBC allways returns the following error:

[MySQL][ODBC 3.51 Driver]Unknown MySQL server host 'mysql' (11001)

I tried server names like 'mysqld', 'MySQL', ip address, combinations of linux server name and mysql name, and other characters like *.*, *:*, *:mysql, etc...

The MySql server is running fine on linux server, port=3306(default). The 'bind-address = 127.0.0.1' parameter on 'my.cnf' file is marked as comment.

View Replies !
Hou Use MySql On Linux Web Server
Now the problum is that when i Host complete web site to linux server then my all web page is running but i dont no how use MySql database on Net.

Through cPanel i creat MySql database but i cant find database root i m not able to Host or copy my existing MySql database with table which is running on my Computer very fine

So please tell me process

1 have to simply upload my mySql database in Public Html folder or else where
i m using cPanel file manager to upload files

View Replies !
Windows To Linux Server
I am trying to set up a a Mysql driver on a linux server from a windows machine. I get the following error.

[MySQL][ODBC 3.51 Driver]Host '(server number)' is not allowed to connect to this MySQL server

Is it likely that the windows-linux combination is causing a problem here?

View Replies !
Importing Text File
I am attempting to import data from a text file. There are many records
to be imported and the raw file format is:

"1 |010-5502-502 |16H1-7-3 |CONTACT, ELECTRICAL,
7/8in. |356.0000 |0.0000"
"1 |03-06-1062 |16H3-5-1 |RECEPTACLE,FREE
HANGING 6 CON.|1.0000 |0.0000"
"1 |03-06-2061 |16H2-8-2 |PLUG, POWER CONNECTOR
|3.0000 |0.0000"

Obviously, a delimiter is the | symbol. How can I do this?

View Replies !
Help Importing W/o A Text File...
How can I import a database if I dont have a text file and its to late get one niether. I have only the folder that belongs to '...inmysqlmysql5.0.1bdataclassified', which I copied and moved from the backup folder to the new folder in its respectable place. The database, classified, is shown as database under phpMyAdmin with 11 in parentheses [ie. 'classified(11)']; which should mean there are 11 tables under the database name 'classified' but when I select the database there are no tables.

Side note: My computer crashed and was only able to recover the files and folders of the WAMP folder; that is the reason I cant make a text back-up file under phpMyAdmin. I am using WAMP2.0.

View Replies !
Importing A Csv File Without Duplicates
I have a csv file I would like to import into a table. The csv file has many duplicate rows that I do not need. How can I import this into a table without any duplicates? I still need the rows just not duplicates. Also the schema is not yet created for the table.

View Replies !
Importing .csv File To PhpMyAdmin
I am trying to import a csv file into PhpMyAdmin. I get an error saying 'invalid field count'.
As far as i can tell i have the exact amount of fields in both csv file and database.
Is there anything i'm missing or anything i can check?

View Replies !
Importing .DBF File Into MYSQL
I'm having a file in Foxpro dbf file format which I want to import in MYSQL database which is remotely located. Is there any syntax which directly imports a dbf file into MYSQL or I'll have to convert it first into a flat file and then import.

View Replies !
Importing Flat File
I need to take flat files and insert them into MySQL tables via a PHP script. The problem is, the book I'm using to learn PHP and MySQL states that all text that is to be entered into a table needs to be enclosed in quotes. Each record needs to end with a newline character (/n). The flat files' data does not have quotes around each item of data.so first, I would need to create a PHP script that encloses each item of data in quotes. I'm not sure how I would begin such a script. I expect it has been done before, and I wouldn't want to re-invent the wheel. If you know of the existence of such a script

View Replies !
Importing A CSV File Via PhpMyAdmin
I receive this message Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR) when I atmysqlt to import a spreadsheet containing the following sample data in a csv file Header row and one line of data shown here:

[doc_id] [content_type] [cat_id] [title] [keywords] [filename] [uploaddate]
[1] [application/msword] [21] [AVS-000002.doc] [INT: Business plan] [AVS-000002.doc] [1217263095]

(The square bracket are shown just to define the header row column and corresponding data.)

The summary error message received is:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'doc_id,content_type,cat_id,title,keywords,filename,uploaddate
1,application/msw' at line 1

What I am atmysqlting to do is to produce a csv file that will import metadata for a document management system to save me having to enter 800 documents one by one. I have exported the data from the DB and what is output as a csv seems to be the same as the input file, but I expect it is more complicated than that!.

View Replies !
Importing Date From A Csv File
I have a csv file where the date is in the DD-MM-YYYY format. So I made the code below to convert the date format into the YYYY-MM-DD that MYSQL accepts, and that works fine with one date field, but my problem is that I got two date fields, one start date and one end date that looks something like this and I have to convert both dates.....

View Replies !
Importing SAV File Into MySQL
I intend to import a .sav file into a table created in MySQL Server 5.0. I tried using the LOAD DATA command, but it copied only 575 out of the 14796 rows. Following is the command I used:

Load data local infile 'F:/new folder/known university list download 27.01.09/Database SPSS Tables/Revised Tables/Final known university list 20_01_09 Revised.sav, into table unilist;

On querying the table, the copied rows only returned NULL values. It seemed as though the copied rows were empty.

FYI, there is no primary key constraint assigned, as there are lot of duplicate values within the table.

View Replies !
Importing CSV File Into MySQL 4.1.7
I am trying to import a file called info.csv into MySQL 4.1.7 using phpMyAdmin 2.6.0-pl3. I created a table called mail, with 2 columns (e-mail Subscribe_to_Newsletter), what is the best way to get the data into it?

View Replies !
Importing Data From A Log File
I am to trying to get data into a table using the LOAD DATA INFILE command from a log file that is generated automatically by a piece of software the following is an example of lines from the log file. The Lines that include START are less important to me but I could make use of them.

29.03.2005 00:55 START ID: 14; Port 14597; Amount: 763
29.03.2005 01:37 FINISH ID: 16; Number: (177, 201, 0) 378; Amount: 6232

The problem that crops up comes from the fact that the lines obviously have a completly different number of potenital data fields also they do not necessarily alternate from a START to FINISH line, there may be 3 STARTS(short ones) followed by 6 FINISH(long ones) then 2 START ect. Code:

View Replies !
Importing A .sql File Phpmyadmin
I have used PhpMyAdmin to export a .sql file. I want to use it to populate a differently named database locally to check if everything works before uploading it. There is a button for export but to import I need a line or two of script.

View Replies !
Importing Txt File To Table
i got text file with more than 500 names order like this:

john
clay
alex
martha
dan
smith
...

there is not , ; . only name in each line
and i need it for <select form
how can i import such a list into mysql table...
i'm using mysql administrator+word and you:D

View Replies !
Importing A CSV File Into Table
i backed up my table entries onto a csv file a long time ago.. im using mysqladmin to review my database and recently i had to upload the back up files back into my table.
when using the actual import function in mysqladmin i keep on getting the failed message.
i was wondering if there any way to import the entries using some kind of mysql or php script.

View Replies !
Importing A Data.sql File
I am using phpMyAdmin 2.70 to try and import a database that I was given.

It is a data.SQL file

It is a fairly big database at 3.5 meg
so I incresed my php.ini settings:

I edited my php.ini file so that
of upload_max_filesize = 7M
memory_limit = 8M
post_max_size = 8m

These changes appear so work becaese max import file shows Max: 7,168KB

my database.sql is 3.5M so there should be no problem - but I get this error

"ERROR:You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit."

View Replies !
PHPMYADMIN Importing .csv File
I get an error message that says "Invalid field count in CSV input on line 17." But I have removed all extra commas and the number of fields in my CSV matches the number in MYSQL table.

I looked on lines 16,17 and 18 for extra commas or anything that might cause it to fail and it looks fine.

What am I missing here?

You know, its the "simple" stuff that frustrates me the most

View Replies !
I Can't Start Mysql Server On Linux.
I'm triyng to install mysql server with rpm on a linux red hat 9.0
machine. The installation was succesfully, but now I can't start the
server. I think the right command is mysqld_safe --user=mysql but
during the starting procedure the server shutdown, it reports:

[root@psiche root]# mysqld_safe --user=mysql
Starting mysqld daemon with databases from /var/lib/mysql
040525 09:32:25 mysqld ended

If I try to rebuilt the grant tables using the mysql_install_db it
reports some errors: "asked for 196608 thread stack, but got 126976"
and "to start mysql at boot time you have to copy
support-files/mysql.server to the right place for your system".

View Replies !
Exporting Database From A Linux Server
the following query:

mysqldump web15db1 > sql.dump

where web15db1 is the name of my database.

And i get a syntax error:
Quote:

View Replies !
Building A Db On Another Server From A Linux Machine
I'm running wamp on a XP machine, which is where my DB will be located.

I want to be able build a file containing a crapload of inserts on my linux machine. Is there an easy way to execute those inserts on the DB on the windows side?

I guess I could write a small PERL routine to open a connection, and send each insert line by line, then exit.

But is there any command line routine that can run on linux (fedora 5) that can initiate the connection, then pass it the file of inserts?

I'd like it to be command line, so it can be run from another application which would then run this from a shell.

View Replies !
Upgrading MySQL On Linux Server
I need to upgrade MySQL on my server. I've tried to find some tutorial, but Google found nothing interesting.

I wonder what is the easiest and most safe way to upgrade MySQL? I'd like to keep configuration (./configure params, configuration files etc) as is and to not hurt anything.

View Replies !
Formatting A Text File For Importing
I wish to import some data into MySQL through PHPmyAdmin. I have been searching for some code examples of how to format the text file,

until now I've ben using Oracle, who's format is as follows:

INSERT INTO tablename VALUES('attribute1', 'attribute2', 'attribute3');

But this isn't working for me, so was hoping someone could be so kind as to give me an example of how I should format the text file, in the manner like I've used above.

View Replies !
Importing A CSV File Into A MySQL Table
I'm trying to import a CSV file with stock price data into MYSQL table, the data from my CSV looks like this:

12/29/2008,2.8,2.92,2.78
12/22/2008,2.93,2.99,2.65
12/15/2008,2.8,3.05,2.7

Where the fields would correspond to
date, high, low, close

In the table I created I have 5 fields,
id, date, high, low, close

My questions are:

Since my csv file doesn't have an id column, would I need to add a new column for id? I have set id to autonum so it should fill itself automatically as I import data no?

Second, I've read abt the format of date in MYSQL to be yyyy-mm-dd format so I'm importing my dates as varchar for simplcity sake, or is this wrong?

I've been trying to import these data using phpmyadmin/command line client without any result, can anyone out there please enlighten me?

+--------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------+-------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| date | varchar(11) | NO | | NULL | |
| high | double | NO | | NULL | |
| low | double | NO | | NULL | |
| close | double | NO | | NULL | |
+--------+-------------+------+-----+---------+----------------+

View Replies !
Importing Drop Down List From A Csv File?
I have a csv file exported from an Access 97 database. The database had a few fields that were drop down lists. When I look at the contents of these cells in Excel these lists are all separated by a square character.

Let me explain the Access enteries a little more. They are filled in by the user, not pre-populated, it is a list of family members of the main employee. I hope that explains what I am dealing with.

My question is when I try to import csv file, it either errors out or it adds the enteries in on the bottom of the table starting with the first column again. It kind of looks like it takes the first set of info and fills it in correctly, then does a carriage return to the first column and puts in the rest of the information from the lists. My last statement is just for descritive purposes of what the actual out put looks like in MySQL to me.

How do I import these fields correctly? I tried SET and LONGTEXT for those columns, that didn't work or did I just not do it right.

View Replies !
Importing 600MB .sql File Into Mysql
I have a 600MB .sql file which I want to import in my database. How can I import such a large file into mysql? I have phpmyadmin installed.

View Replies !
Importing Database :: Server Has Gone Away
i'm trying to import a sql file into an empty db (no tables yet)

mysql -u root database < c:database.sql

i get this error:
ERROR 2006 at line 380: MySQL server has gone away

the sql file is more than 15 megas of size (i don't know if this is the problem) and has no errors because it was generated by phpmyadmin 2.6 what can i do to import my db?

View Replies !
Unable To Connect To Mysql Server(Linux)
i have problem om my sevrer ( linux )
WHM 11.11.0 cPanel 11.16.0-S18450
REDHAT Enterprise 4 i686 on standard - WHM X v3.1.0

after update apache then all websites on server can not connect mysql
from WHM > Tweak Settings > Mysql > 5.0
and used old style (4.0) passwords with MySQL® 4.1+

also command /scripts/mysqlup
but no way still same error can not connect to Mysql

View Replies !
Access Linux Mysql Server From Windows?
Can I run a Mysql server on a linux box, and access the databases belonging to it over a lan from a machine running windows xp?

View Replies !
Timestamp Issue Importing From Mysqldump File
I am moving data (all my schemas/tables) so I data dumped them. Here's one of the statements.

INSERT INTO 'tablename' VALUES (12, 'a', 'b', 'c', 2008-12-24 11:21:01);

I would get an error.

The new table is created but it says syntax problem with 2008-12-24 11:21:01

Why is that? I did try changing the field datatype to 'TEXT' from being 'TIMESTAMP' but I had to add the single quotes on each one of the statements.

Is there a way to export the data to have quotes on each of the timestamped records?

View Replies !
Error When Importing .sql File Into Mysql Database
When i try to import a .sql file into a new script in the query browser (a script that inserts about 45,000 records into the tables ive created) i get the following error:

'Error: you have an er in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near "Ylvisa' at line 1 (1064)'

I have looked at both lines and searched for the area that contains "Ylvisa', but i see no errors in the syntax.


View Replies !
Importing A Csv File Results In Wrong Order
I have a table with some records on it. I am using phpmyadmin to import some extra record from a csv file. The import looks good but the new records are imported in wrong order as the original file; mainly backwards.

I have a key field and in the file the order is as expected 1, 2, 3, etc. but when I query the table, the order displayed is 3, 2, 1.

View Replies !
Importing Japanese Characters From Text File
I have a tab-delimited text file I'm trying to import with Navicat Import Wizard. The first field of each line is in Japanese (SJIS format). Even though I've tried setting up the fields with Design Table for the field of the new database to be coded for SJIS (and every permutation I can think of), I only get question marks in the generated table.

View Replies !
Importing A CSV File To Update Specific Table
I have serveral CSV files that I collect each morning, that I would like to automate the updating of hte tables. I have been doing a litlte research, and I am not sure if mysqlimport is the correct tool I should be using. Is it possible to use mysqlimport to update a specific table in my database?

View Replies !
How Do You Install MySQL 5.0 Server And Administrator On Red Hat Enterprise Linux 3 WS
Could someone point me to instructions for installing MySQL 5.0 server and administrator on a Red Hat Enterprise Linux 3 WS system?

I just freshly installed the system and deliberately did not select MySQL serveras part of the installation I downloaded the 5.0 rpm Community Server edition, and that installed fine. My problems came while trying to build the administrator.

Basically, I got caught up in a loop of incompatable modules:

# rpm -i mysql-3.23.58-16.RHEL3.1.i386.rpm
warning: mysql-3.23.58-16.RHEL3.1.i386.rpm: V3 DSA signature: NOKEY, key ID 025e513b
error: Failed dependencies:
perl-DBD-MySQL is needed by mysql-3.23.58-16.RHEL3.1
MySQL conflicts with mysql-3.23.58-16.RHEL3.1
Suggested resolutions:
/var/spool/up2date/perl-DBD-MySQL-2.1021-3.i386.rpm

If up2date the suggested resolution, it says I need a library from mysql-3.23.58-16.RHEL3.1.i386.rpm.

I will gladly read the "manual" or docs, and would love a pointer to them.

View Replies !
Importing Large Dump File Into Mysql On Windows
I have a 80 meg dump file created with mysqldump. I need to import it
into a mysql db on Windows.

On linux, I say "shell>mysql dbname < dumpfilename"
But that does not work on Windows. Importing via phpmyadmin is not
possible either since we are limited to 2 Meg file size.

View Replies !
How To Skip Fields From Text File While Importing Data Into DB
The syntax for loading data from file into DB is load data local infile 'test.txt' into table customer (customerID,name,msgto,msgfrom);

for example suppose a text file has seven fields:

uniqueid, customerID,name, guid, msgto, msgfrom,tag

customer table structure:

customerID varchar
name varchar
msgto varchar
msgfrom varchar

like to skip 'uniqueid', guid and 'tag' fields from text file and only insert 5 fields into table mentioned above.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved