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.





MySQL Dump Help With Version ;4.0.14-log


Every time I try to do a back up of the databases on our system i get this
error:

ea990# mysqldump -u root -p --opt -full test > test.sql
mysqldump: unrecognized option `--max_allowed_packet=16M'

and it doesnt seem to dump anything, I have tried various options, and
usually use
my db back up script but that doesnt seem to work as well.

----
#!/bin/sh
# mysql nightly dump

PASS="xxxxx"

DATE=`date "+%Y-%m%-%d"`
/usr/local/bin/mysqldump --password=$PASS -A >
/usr/home/http/mysql_dump/backup.$DATE
/usr/bin/bzip2 -9 /usr/home/http/mysql_dump/backup.$DATE
-------

but that gives me the same error as above.




View Complete Forum Thread with Replies

Related Forum Messages:
Install New Version Of Mysql With Old Version Running
I would like to install the new versin of mysql but currently i have mysql version 3.23 running...

I need to have 2 version of mysql running at the moment in win2000 for different app.

what is the steps for me to install the new version of mysql without causing error and able to run concurrently.

View Replies !
Mysql Dump On XP
I am having terrible trouble trying to find out the right command to restore a mysql dump into mysql on my XP machine. I am trying to use both the windows command line and the mysql command line client, but I can't get anything to work!

Been trying this:

mysql databasename < databasebackupfile.txt

And variations of with no success :-( I have checked the help file, and this is what it says to use. I am not a newbie to this, but I have never used mysql on windows.

View Replies !
MySQL Dump Date
i am using mysql dump from an auto scheduled task. i need the date to be in the file name when i back it up. at the moment the existing files just get written over.

View Replies !
Mysql Dump File
I've got a file that has a load of INSERT INTO lines in it which I'm dumping into my database. This works fine but I was wondering is it possible to display a text output from this file.

e.g.
INSERT INTO table1 VALUES (1,'a');
INSERT INTO table1 VALUES (2,'b');

## display 'Table2 entry finished'

INSERT INTO table2 VALUES (1,'c');
INSERT INTO table2 VALUES (2,'d');

## display 'Table2 entry finished'


View Replies !
Stop Mysql Before A Dump?
I want to make a dump on my DB, but I was asking myself if there are any problem to do that without stopping the DB before.

Have I to stop my DB before mysqldump? is there any provability that my dump backup will have any errors?

View Replies !
Any Way To Dump From Mysql 5.0 To 4.1.22-standard?
I have a MySQL 5.0 database that I have dumped to a flat file with:

mysqldump -u username -p databasename > mydatabase.sql

I have written a cgi perl script to import the dumpfile into a new table in an existing database. The script runs fine when I run it on the local host. But when I upload the same script and dumpfile onto a webserver that is running MySQL 4.1.22-standard, I get the following error when trying to import:

DBD::mysql::st execute failed: 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 ';
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101' at line 7 at mysqlimport.cgi line 24, <FH> chunk 1.

I would have thought that a dumpfile would not be version dependent, but apparently it is. The database is very simple.

- Is there any way to edit it so that it will import into the lower rev db?
- Or is there a way to dump it into a lower rev format?
- Or is there some other solution (other than upgrading the server)?

View Replies !
Importing Dump From MySQL 5.0.51a To - 4.1.21
Does anyone know of any issues of importing data into two different databases? And how would I import a dump from 4.1.21 to 5.0.51a ?

View Replies !
Mysql Dump And Windows
I have installed mysql on windows.

However, due to database corruption issues I would like to perform a backup every hour or so. As a result I plan to schedule a mysql dump at regular intervals(for example using the AT command). The problem is that the user that runs mysql dump has to supply the password. ie: myslqdump -u user -p databasename > backup.sql

My question is: how do I specify (in a .cmd file) the password to enter after the mysql command above? I do not think "echo password" is enough for mysql to pick up the password.

View Replies !
Mysql Dump Woes!
Hi guys, i'm currently in the process of moving servers. And i'm trying to move my sql file for a phpbb forum to the new host. I'm using BigDump to install the .sql file. However it doesn't seem to work. The installation of the .sql file gets to about 30% and then i get an error such as

Error at the line 117905: INSERT INTO phpbb_asearch_wordlist (word_text, word_id, word_common) VALUES('françois', &#55619;&#56747;', &#390;');
Query: INSERT INTO phpbb_asearch_wordlist (word_text, word_id, word_common) VALUES('françois', &#55619;&#56747;', &#390;');
MySQL: Duplicate entry 'françois' for key 1
Stopped on error
I have edited and then deleted the row that caused the problem but i will then get an error for each line after that. So it's not an obvious syntax error as such.

I have a feeling that the problem is between the settings of both myslq databases. Here is a summary:

Exporting Server is running:
MYSQL 4.1.12
Language: English (en-utf-8)
MySQL Charset: UTF-8 Unicode
MySQL connection collation: utf8_bin
All rows are MyISAM and have collation latin1_swedish_ci

Importing Server is running:
MYSQL 4.1.12
Language: English (en-utf-8)
MySQL Charset: UTF-8 Unicode
MySQL connection collation: utf8_general_ci
All rows are MyISAM and have collation latin1_swedish_ci

Would the difference in the collation types make any difference?

View Replies !
Mysql Dump Schema
I'm trying to get a hold of MySQL and am trying to dump the schema. This is the command I'm using:

mysql> mysqldump -user root -password=rootpass flatland > flatland.dump;

And this is the error I'm getting:

ERROR 1064 (42000): 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 'mysqldump -user root -password=rootpass flatland > flatland.dump' at line 1

Any suggestions? I'm running the latest version of MySQL.

View Replies !
Rolling Back A DB From Version 5 To Version 4
I've got a local MySQL DB with my MediaWiki data that was created in version 5.0.17, but I recently discovered that my webhost is running version 4.0.27, and when I tried to import the database as-is, I received an error.

I'm looking for suggestions as to how I could roll my database back to the older version of MySQL, in case my webhost decides not to let me upgrade. I've considered using an intermediary, such as converting to MDB or CSV, but so far I haven't had much luck with finding a tool to do so without spending a pile o' cash.

View Replies !
Read Mysql Dump File?
I am trying to read a mysql dump file that I was given from a mysql dump file into my mysql server, I am using the following command at the mysql command line and get the following error:....

View Replies !
Archived Dump Of MySQL Database
We are planning on moving to a different server and was wondering if
there was a way to make an archived dump of the database?

View Replies !
Mysql Dump And Lock Tables
I am getting different results using mysqldump between versions.

The only option I am specifying is --no-create-info

Using Mysql 4.1.12a-nt I get no lock table commands and each row is a separate insert statement, as I would expect.

Using 4.1.18-nt I get lock table commands and all rows are inserted as a single insert statement (per table). How can I turn the lock table output off, is this something that is specified as a default somewhere ?

View Replies !
Import Of Old MySQL Dump With Same Names
I dumped mySQL to a file, and want to IMPORT it to a new location (other host.
I have the mySQL db already and it have the same fields/names in it, but I want to import the old ones (use them instead, because it contains text and info)

When I run the RUn Quierys in mySQLAdmin I get error: allredy exist.
Do I have to delete the existing first? how do I empty it then?

View Replies !
Mysql Dump Table Order
How does mysql order the tables in the file that it creates? Is is it by the order the tables were created, by alphabetic order? can I specify an order by giving the table names in the command line?

View Replies !
MySQL Dump Is Not Allowing Application To Run
I am creating a backup once per day automatically. The current size of the file is around 4.1 Gig uncompressed. The command that I use is as follows:
mysqldump --opt -q -R -u username-p'passwd' dbname | gzip > /filepath/$(date +%F).sql.gz

This takes around 25 - 30 minutes to fully backup the database. The problem that I have seen is that while this backup is occurring I cannot access my JBoss application. Oddly enough, I tried to access the database directly and everything is working fine, but any other remote user cannot access the database.

I want to know a couple of things:
1) Is my backup command optimized or is there something else I can add to make it faster. Now I do need to backup the data, table structure, stored procedures, etc.
2) How can I conduct a backup that is more efficient where it does not interfere with the remote users?

View Replies !
Dump .csv Data In Mysql Table
hI - I AM A ROOKI IN MYSQL - please help - here is my problem:

I intigated PHPLIST - open source marketing mail client for PHP that uses MYSSQL - I have been trying to upload my list of contacts into the client but had no luck or support for PHPLIST - my prroblem is as follows:

I created a DB table with 8 rows (ID, first, last, email, address, state, zip, birthdate) - I have 80,000 records in excel spreqadsheet which I saved as .csv and I wish to import / dump the data into the db table) each time I tried to do that I go bunch of errors -- my qustions are as follows:

First - anyonme one out there knows anything about phplist or moreless how can I creae a a table that I can move my records to

second, when I creae an ID -- I use auto_increment - would that apply when you do data dump using PHPadmin then Run SQL query - paste your csv data you copied from note pad++ - or shall I create my own ID's

Please help - I need to send my xmas cards - and invites for our annual party - hey if you are in Chicago you are welcome to join us.

View Replies !
MySQL Dump Not Working Correctly
I have a table in MySQL. nightly, the table is dumped (structure and data) and imported into a different database. it has been working fine like that for 3+ yrs. I recently added a new column. i populated it w/ values. the rest of the dump goes correctly, but no matter what, it will not dump this column's values.
in the dump it will just show empty braces.

The columns structure is set to DEFAULT NULL VARCHAR(50). I know im probably missing something, im not a database expert by any stretch.

View Replies !
Can't Import Dump Files In Mysql 5
I apologize upfront if this is common knowledge. I've searched for quite a while and found nothing concrete.

Using phpmyadmin 2.6.4-pl4
MySQL 4.0.23-nt
php 4.4.4

When I export and make a sql file, I cannot import the data using this setup:

phpmyadmin 2.6.4-pl4
MySQL 5.0.24a-community-nt
php 4.4.4


Get "No SQL query!" message through phpmyadmin when I import the .sql file. If I cut and paste out the create table or insert text it works, but that takes forever. If I copy the data files to the data folder everything works in mysql 5.

The sql files I've tried have been from 2-4 mbs. My backup dumps are 80 mbs though and obviously worried about restoring backups. Is there something I missed when upgrading? I pretty much copied off my data, uninstalled mysql 4 and installed mysql 5. Not in strict mode. Dataserver is in another location so can't always go copy the files off manually. Thanks for any help.

View Replies !
Import Dump From Unix Mysql To Windows Mysql
I am trying to load a dump from a MySQL database on my ISP's server to my development environment on a Win 2K machine (running MySQL). When I run the mysql command to run the load script, MySQL gives the following complaint:

"ERROR 1064 at line 21: You have an error in your SQL syntax. Check the manual t
hat corresponds to your MySQL server version for the right syntax to use near 'D
EFAULT CHARSET=latin1' at line 7"

The dump from the ISP's server is created using mysqldump. The ISP is running MySQL 4.1.20. My development environment is MySQL 4.0.26. I have no problem loading dumps made from my development environment usng phpmyadmin.

View Replies !
MySQL Syntax Error When Importing From A .sql Dump
I'm attempting to install JForum on my local server (WinXP Pro). I'm running MySQL Community Server 5.1.23

When attempting to import from a .sql dump, I receive the following syntax error. This error has been produced through JForum's installation wizard, SQLyog and the MySQL CLI. The error is as follows: Code:

View Replies !
MySql Hangs When Building/piping From A Dump.
I'm trying to update my local copy of a live database to match a recent dump: Here's what I'm doing, in Windows XP, (from command prompt):

-----
cmd> mysql --user=myuser --password=mypassword
mysql> drop database mydb;
mysql> create database mydb;
mysql> use mydb;
mysql> exit
cmd> mysql --user=myuser --password=mypassword mydb < backup.sql
-----

The query hangs at the 32nd table, which has about 57000 rows with blobs of up to about 9kb. <- I presume this is part of the problem...

I have tried everything I can think of, including reinstalling mySql server and query browser. I have also added the following line into my my.ini file, which is definately the one that is read, I have checked: (in the [mysqld] section)

max_heap_table_size=1073741824

I'm really confused, as up until last week I was able to build my database from a backup with no problems, even through an Ant build with Eclipse.

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 !
PhpMyAdmin Dump On Local MySQL Administrator/ Query Browser
Ok I give in, I cannot get data obtained from phpMyAdmin into my local database at all! I've tried:

- Saving export as .SQL file and restoring using MySQL Administrator but I get a message that the file was not created using MySQL Administrator.

- I've tried doing a table with data dump and using that SQL query in MySQL Query Browser but it only inserts a few rows instead of all 1050.

What am I doing wrong?? I can't seem to find much info on this particular problem. I want to manipulate data locally instead of over a slow network connection as my queries are getting pretty complex...

View Replies !
ERROR 2013 (HY000) While Importing Large Mysql Dump File
I'm trying to import these sql dump files. There are a bunch of them, all multiple gigs. Most are around 3-5gigs, one is 69gigs.

Well it gives me this error after a very short while:

ERROR 2013 (HY000) at line 103: Lost connection to MySQL server during query

The line number varies. Also, when it's processing, before it actually gives the error, if I try to login to phpMyAdmin to watch, it will sometimes let me login to the first page, but if I click anything it kicks me out. And the sites that are running on the server that use the mysql server (different db) throw this db mysql error through the php:

Out of memory (Needed 536870880 bytes)

And then as soon as the error is throw:

Mysql reboots I think, the sites say they can't connect with provided settings. And if phpMyAdmin is sitting on the first page, it kicks me out.

So something is wrong...

View Replies !
Mysql-3.23.56-Max And Non-max Version
I recently upgraded my machine to SuSE 8.1 and went about getting all the
rpms I could get related to MySQL and install them.

I did notice that unlike before, I have a "max" version of 3.23 running and
I'm 99.99% sure this was not the case with my previous version (an earlier
version of 3.23).

What is the difference between the max and non-maxed version... I've not
found any info on it

View Replies !
New Version Of Mysql
mysql is a free software.Its new version is often released.
But I wander who control the relase.And how one programmer join the
development team?

View Replies !
Mysql 5 Version
I am trying to run Mysql 5 on fedora. I copied the zip files and tried running following command to start the server:
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &

But geting the error:

[root@varun mysql5]# Starting mysqld daemon with databases from /data/mysql
STOPPING server from pid file /var/run/mysqld/mysqld.pid
060116 04:31:00 mysqld ended

I already have mysql 4 installed and running successfully.. To start with mysql 5, I stopped mysql 4 and executed commands for mysql 5 (as mentioned above).
While I was able to run it successfully on my local linux machine but not on the server machine (fedora)

View Replies !
Old MySQL Version
I'm using the following query to count users in a user table (vocUsers), but only if they're users who aren't represented in a second table (vocProjectOwners).
The query works fine on my server, where the MySQL version is 4.1.7. But the production server is still on 3.something, and MySQL there craps out on the "NOT IN" clause.
Does anybody know any alternative syntax that might work on that old version of MySQL?


Code:



$SQL = "SELECT COUNT(*) FROM vocUsers WHERE ID NOT IN (SELECT UserID FROM vocProjectOwners WHERE ProjectID = " . $_REQUEST["id"] . " AND UserID = vocUsers.ID)";

View Replies !
4.1 Mysql Version
I recently downloaded and installed the newest 4.1 mysql version. I had the 3.x version a few months ago but since then htey have changed the isntall process a little bit. I tried to do the install but whenever I got to the fianl page and tried to exucute the installtion, it would always give me a X and tell me that it couldnt start the windows service.
I started the mysql and then used phpmyadmin to log into it. after getting the settigns right, everything was fine except i needed to put a password on my mysql database. I did that thru phpmyadmin and now when i tried to log in it would always tell me tht it couldnt connect and that i should upgrade my mysql verion. i got the same thing when i tried to install phpBB2. I am now downloading the manual istallation of mysql and hoping that will work for me.

View Replies !
MySQL Version To Use
I have 4.0 currently installed and I'm coding all my scripts in that version... should I keep using it or should I upgrade? If I should upgrade, what version do you recommend, 4.1 or 5.0?I'm confused because I don't make scripts only for me, I code them and put them available to anyone on my website and sometimes I also have some paid jobs to code some websites using mysql databases and the whole point is to which version should I code my scripts?Not every server on the web is running the same mysql version and if I code something that works on 4.1 but not on 4.0 some people might not be able to run the script.Which version do you think that is the most used on the servers? Should I code my scripts to make it compatiable with that version and up?

View Replies !
PHP Version 5.0.2 MySQL 4.1.7
I am trying to connect from PHP Version 5.0.2 on Windows 2003 Server an IIS to MySQL 4.1.7 but there is an authentication problem.
When I run the following PHP script...

<?php
$connection = mysql_connect("localhost","root","password");
?>

The message I get is...
"Client does not support authentication protocol requested by server; consider upgrading MySQL"This seems to be a problem with MySQL 4.1 because I can get it to work perfectly well with MySQL version 4.0.13

View Replies !
How To Get The Version Of The Mysql?
There is a running mysql on the server. But I don't know its version. I can logon on the server and have all accounts. And Can anyone tell me how to know the version of the mysql.

View Replies !
Difference Between Mysql-3.23.56-Max And Non-max Version
I recently upgraded my machine to SuSE 8.1 and went about getting all the
rpms I could get related to MySQL and install them.

I did notice that unlike before, I have a "max" version of 3.23 running and
I'm 99.99% sure this was not the case with my previous version (an earlier
version of 3.23).

What is the difference between the max and non-maxed version... I've not
found any info on it...

View Replies !
MySQL Under MAC OS X 10.2.8 But It Is Not The Server Version
i will install the mySQL Software under a MAC OS X 10.2.8 operating
system. But my iBook ist not a Server.

on the page http://dev.mysql.com/doc/mysql/en/M...stallation.html
i fond in the dokumentation only the server installation.

View Replies !
Connecting Php To Mysql Version 5
My problem is,am trying to connect php with mysql so that i can write to the database and also read from the database in de mysql server. I tryed to use the function mysql_connect(),but i get a message like "Call to undefine function mysql_connect()" in the browser. I have mysql and php on de same computer.

I think i must make some changes in the php ini file(the configuration settings) but i have no idea how to accomplish it. And also which username must i use in the function since i don't use any username when connecting to mysql or i should leave that argument empty?

View Replies !
Finding Version Of MYSQL
I am an absolute newbie to MYSQL. I am dealing with a canned MQSQL database from WINSNORT. How do I determine the DB version?

View Replies !
How To Find Version Of Mysql?
Is there a query that would return the version of mysql? I have no access to command prompt or shell so I need a query that I can run and find the mysql version

View Replies !
Which MySQL Version Is Right For Ubunto 9.04
Which binaries should I install to work with an ubuntu 9.04 on a x86 box?

View Replies !
Install 2 Version Of Mysql
I'm a newbie of mysql, i already used mysql 4.0.22nt and it work great
And now, I design to install more mysql server on my server of the current version 4.1.7 (reason why:

I have some php script that running on 4.0.22nt and I don't to convert them to 4.1.7. Another words, I using it for study purpose only)
So, it is possible to install 2 version on the same server like this.

View Replies !
MySQL 5 Is Latest Version
The lastest full production release of MySQL is version 5.

Some hosts do not support version 5 yet but most should be supporting version 4.1.

If your version is older than 4.1 please note that in any new threads you start. This is because older versions do not support things like GROUP_CONCAT and subqueries among other things.

If you happen to still be on MySQL 3.x then you won't even have the ability to use UNION.

If you note that you are using an older version, then when someone is composing a solution to help you, they will give you a version that you can use on your particular release of MySQL.

Subqueries can be re-written as joins and in place of a UNION you may create a temporary table and then query results from it for instance.

View Replies !
MySQL Version 4.1.21-standard Log In Help!
I am using phpmyadmin through my web host provider. I have set up my database and username with a password.

I open phpmyadmin, open the SQL query window and try to log in with this

mysql -h localhost -u myusername -p

When I submit, I get this error:

Error

SQL query:

mysql - h localhost - u myusername - p

MySQL said: Documentation
#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 'mysql -h localhost -u myusername -p' at line 1

View Replies !
ON DUPLICATE KEY UPDATE With An Old Version Of MySQL
ON DUPLICATE KEY UPDATE is new as of MySQL 4.1.0, but the web server
that I'm using has MySQL 4.0.24

How would I implement ON DUPLICATE KEY UPDATE with an old version of
MySQL?

View Replies !
Moving Mysql Backup From Version 4.1.12 To 5.0.3
i dont have much experience in databases or Mysql.i have my data
in development m/c with Mysql 4.1.12, i have to move them to production
m/c with Mysql 5.0.3 .when tried it showed error with displaying

[root@hostname mysql]# mysql -u root mydatabase < backup1.sql
ERROR 1064 (42000) at line 1: 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 'r
o
EJÃlÐ¥>~þ¯zE+&T_µ_Pã
5'%TÂ?Ud$V `ò·êÈj² Èçª1i½Dål'
at line 1
[root@hostname mysql]#

was i am going wrong?

any ideas for making happen moving backup from Mysql 4.1.12 to Mysql
5.0.3 ?

View Replies !
File Based Version Of MySql
I would like to create a program in C# and use MySql as a backend. Is there a file based version of MySql that does not require the server to be installed. I know that if I use a Ms Access db, I can manitpulate the data without the user having Access installed (using ADO). I want to know such a thing exists for MySql?

View Replies !
Issue When Upgrading MySQL From Version 4.1 To 5.0
I got the following message when I upgrade MySQL from 4.1 to 5.0, and unable to continue,?

[root@wl-jzarley ~]# rpm -i MySQL-server-community-5.0.45-0.rhel4.i386.rpm
warning: MySQL-server-community-5.0.45-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL conflicts with mysql-4.1.12-2.RHEL4.1.i386

View Replies !

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