1064 Error When Running A PHP Script
I've recently taken over the maintenance of a PHP/MySQL driven website.
I have successfully installed the site on a Windows NT machine, and everything seems to work fine. However, When I install and subsequently try to run the site on an XP machine, I get a MySQL 1064 error, indicating that there is a problem with the following line of code.
$query = "SELECT * FROM cases
WHERE member_id= " . $memberID . " LIMIT 1";
The error message says that there is a problem with my code close to LIMIT 1.
I've tried two XP machines, and both give me the same error.
I'm running the same versions of PHP and MySQL on all three machines. Why would the script be OK on one machine but not the other two?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
#1064 - While Running A Doc Example
I plan to use the function ADDTIME(expr1, expr2) in an SQL request. I looked at the doc and tried the normal syntax, but I have always the following error even if I enter the example from the doc, why ? #1064 - You have an error in your SQL syntax. Even if I enter SELECT ADDTIME("1997-12-31 23:59:59.999999", "1 1:1:1.000002"); I am using MySQL under Windows 2000 using EasyPHP 1.7 (Apache 1.3.27, PHP 4.3.3, MySQL 4.0.15, PhpMyAdmin 2.5.3. )
View Replies !
View Related
Error 1064 Restoring PhpMyAdmin Dump (error On Foreign Key Clause)
I am getting an Error 1064 when I try to restore a dump I created using phpMyAdmin from an online database into a newly created database on my home system. The error points to a section of the dump file that adds foreign key constraints. I've already disabled the foreign key checks. The problem seems to occur only with tables in which I have more than one foreign key. The dump file foreign key constraint section looks very odd to me because multiple ALTER TABLE statements to add foreign keys are separated only by commas, not semi-colons, and even weirder, each time a new statement to add a foreign key constraint is created, it is then repeated in the creation of the next foreign key constraint. Code:
View Replies !
View Related
MySQL Error, #1064 - You Have An Error In Your SQL Syntax.
I was adding a table in phpMyAdmin and when i clicked on go it produced this SQL CREATE TABLE `pm` ( `to` VARCHAR( 30 ) NOT NULL , `from` VARCHAR( 30 ) NOT NULL , `message` BLOB( 25000 ) NOT NULL , UNIQUE ( `to` , `from` ) ) and this error MySQL said: #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 '(25000) NOT NULL, UNIQUE (`to`, `from`))' at line 1
View Replies !
View Related
Mysqldump :: ERROR 1064 (42000): You Have An Error In Your SQL
I am runnning MySQL Server v 5.0 on my local machine which has Windows XP Pro SP2 installed. I have a database "mydb" and I am trying to make use of the mysqldump command since the past 2 days (taking help from mysql.com as well as google) I have gone through the tutorial http://www.devarticles.com/c/a/MySQL...ith-MySQLDump/ but still unable to see how to make use of it. This is the command I am running in the MySQL Command Line. mysqldump --host=localhost –-user root –-password=toor mydb > sql.dump but getting the following error 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 --host=localhost --user root --password=toor mydb > sql.dump' at line 1
View Replies !
View Related
Error 1064 ???
I have this sql which creates a procedure, unfortunatelly I keep getting the dreaded 1064 error, but I have not idea why, can anybody enlighten me please? CREATE PROCEDURE pAdminLogin ( IN uname varchar, IN upass char(32), IN force bool default 0, OUT admin_id smallint ) BEGIN SELECT id FROM tadminuser WHERE username = uname AND pwrd = upass INTO admin_id; END;
View Replies !
View Related
Error #1064
This is my query: CREATE TABLE `cemoisci_gauche_fr` ( `cemoisci` longtext NOT NULL , `num` text NOT NULL , FULLTEXT KEY `cemoisci` ( `cemoisci` ) , ) TYPE = MYISAM And mySQL answers: #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 ') TYPE=MyISAM' at line 5
View Replies !
View Related
SQL Error #1064
I have just moved from a windows server to a linux server. It came with plesk, mysql, and a few other modules. However, when I try to import my databases, I get a #1064 which is "You have an error in your SQL syntax near 'DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci' at line 12". I am using phpmyadmin to import them. I know one of them does not have a problem with linux because I used it before on linux.
View Replies !
View Related
SQL Error : 1064
I am using a phpbb forum on phpnuke template, i recently upgrated to a new version, but i get an error code when i try to access my forums: phpBB : Critical Error Could not query database for theme info DEBUG MODE SQL Error : 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 '' at line 3 my question is: what could be wrong here, and where can i find LINE 3? and is it normal that the place between the two " are empty?
View Replies !
View Related
1064 Error
I keep getting a 1064 eror and not recieving the order invoice when a customer uses a credit card without signing up for paypal to pay for their order...according to paypal they are supposed to be able to use their card without signing up but when they do I can't see what it is that they ordered the error 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 '-20, 20' at line 1.....
View Replies !
View Related
ERROR 1064 (00000)
I seem to be having some syntax issues with my SQL script. The error I get is as followed: ERROR 1064 (00000): 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 'User(Email) My SQL File contains the following: Code:
View Replies !
View Related
Error 1064 During Import
I'm transferring my mySQL db to a web hosting server via phpMyAdmin and I'm getting the 1064 syntax error. I tried everything and finally found that this was the probllem in the generated SQL... MYISAM DEFAULT CHARSET = latin1 If I remove that line from every table it imports OK, otherwise I get the error. I asked the hosting co. about this and they thought that it might be due the the fact they we have different versions of mySQL. I have 4.1.7 and they have 4.0.22. I also noticed a difference in the phpMyAdmin screen for viewing a table... at the bottom where it says "Location of the textfile:" I see the following.. "Character set of the file [utf8] (where utf8 is a pull-down menu). I don't see this on the hosting co's phpMyAdmin running mySQL v4.0.22.I just wondered if anyone has noticed this and is this version difference the reason for the problem? Also, is there any other fix other than manually deleting this MYISAM DEFAULT CHARSET = latin1 from each table in the SQL.
View Replies !
View Related
Error 1064: Sql Syntax
Error 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 'Test LOOP set @counter = @counter + 1 INSERT INTO student VALUES (@cou' at line 2 I have tried changing every line #code starts here #declare @counter int default 0 set @counter =0 Test LOOP set @counter = @counter + 1 INSERT INTO student VALUES (@counter,"Andreasa","Morris","andreasa_m@hotmail.com",19) if @counter == 10 then LEAVE Test end if END LOOP # saved as inserting.sql
View Replies !
View Related
Error 1064 When Using DISTINCT
Alright, I am working through a tutorial for SQL that demonstrates the DISTINCT function. I copy the example into MySQL word for word and I get error 1064. I'm stumped and I can't find the syntax error. I'm sure its obvious but I don't have the expertise to find it! I'm running MySQL 4.1 on a laptop runnng Fedora Core 3. Below is the exact code and error message. mysql> SELECT AVG(DISTINCT prod_price) AS avg_price -> FROM Products -> WHERE vend_id='DLL01'; ERROR 1064: You have an error in your SQL syntax near 'DISTINCT prod_price) AS avg_price FROM Products WHERE vend_id='DLL01'' at line 1
View Replies !
View Related
Error Code : 1064
I am trying to create procedure in MySql4.1.22 but it is throwing the below error Error Code : 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 'PROCEDURE simpleproc (IN param int,OUT param1 INT) For creating procedure i am using below syntax. Please help me on this issue. CREATE PROCEDURE simpleproc (IN param int,OUT param1 INT) BEGIN END;
View Replies !
View Related
ERROR 1064 (42000)
CREATE TABLE IF NOT EXISTS Morphology ( MorphologyID INT UNSIGNED NOT NULL AUTO_INCREMENT, TypeofOrganisms VARCHAR(40) NOT NULL, PRIMARY KEY (MorphologyID) ) ENGINE=INNODB; CREATE TABLE IF NOT EXISTS Anatomy ( AnatomyName VARCHAR(70) NOT NULL, MorphologyID INT NOT NULL, Alignment VARCHAR(40) NULL, Content VARCHAR(30) NULL, Number INT NULL, Size VARCHAR(30) NULL, INDEX (MorphologyID), PRIMARY KEY (AnatomyName) FOREIGN KEY (MorphologyID) REFERENCES MORPHOLOGY (MorphologyID) ON DELETE CASCADE ); ENGINE=INNODB
View Replies !
View Related
1064 - You Have An Error In Your SQL Syntax.
I am getting this error on my web site that is developed with osCommerce php code. It appears to be replacing ' with ' I am not sure if it is the ocCommerce php code that is causing the problem or MYSQL itself. This is the full error - has anyone seen anything like this before. Code:
View Replies !
View Related
Error 1064 On Select
I'm using: MYSQL version 4.1.7 xampp 1.4.13 PHP 5.0.4 apache 2.0.53 my OS is windows xp SP2 My problem is: i have a field with progressive integers, and i need to increase it by php. So i thought to take the max and then do "max + 1". But when i do SELECT MAX (idthread) FROM learning_forumthread i take this error: #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 '(idthread) from learning_forumthread' at line 1 i tried with select min and select count ... and i got the same error. But when i tried with select avg (idthread) ... it worked perfectly. It's very very strange for me! I need to take the last record of that field. Can you give me a solution??
View Replies !
View Related
Error 1064 In A View
it's first time I use MySQL... after setting up the server I tried to insert tables, works fine and a view... but this does not really work. The view itself looks like this: -- CREATE OR REPLACE VIEW `sql2'.'test` AS SELECT tbl_artikel.ID, tbl_artikel.Datum, tbl_artikel.LiefNr, tbl_artikel.ArtNr, tbl_artikel.KT1, tbl_artikel.KT2, tbl_artikel.Menge, tbl_artikel.Einh, tbl_artikel.EP FROM tbl_artikel ORDER BY tbl_artikel.ArtNr; -- by executing this view I got the error: MySQL Error Number 1064 You have an error in you SQL syntax check the manual that corresponds to you MySQL server version for the right syntax to use near 'OR REPLACE VIEW `sql2'.'test` AS SELECT tbl_artikel.ID, tbl_artikel.Datum, tb' at line 1 I looked for the error number but without real success.
View Replies !
View Related
Count Error 1064
i have a problem whith the querries that use count command, even "select count (*) from tablename, it returns me an error. I have read that i have to change the column tipe to smallint, and doesnt work. Anyone please know something?
View Replies !
View Related
Error #1064 :: STR_TO_DATE
I am running MySQL 4.0.20 & 4.18.20. I have looked at the manual for using STR_TO_DATE in both of these versions and I have cut and pasted the examples out of the manual but can't get it to work in either version of MySQL! Am I going crazy? Here's the output I get when I use an example from the manual: SQL-query : SELECT STR_TO_DATE( '00/00/0000', '%m/%d/%Y' ) MySQL said: #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 '( '00/00/0000', '%m/%d/%Y' )' at line 1 The actual conversion I want to do is: STR_TO_DATE( '01-01-2004', '%m-%d-%Y' )
View Replies !
View Related
Error 1064 :: In New Environment
I am trying to migrate from one PHP/MySQL environment to another (on the same host) and although everything worked perfectly on the old environment, in the new environment most pages crashe with error code 1064. Where do I find out what that means?
View Replies !
View Related
#1064 - You Have An Error In Your SQL At Line 1
Not sure what is going on here. I'm moving a php app, which I do all the time, and so I pulled down the mySQL, and am running it on the new DB, but I get this error. The SQL comes from phpMyAdmin 2.6.4-pl1 and is going into phpMyAdmin 2.6.4-pl2. =================== THE FULL ERROR =================== #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 '-- phpMyAdmin SQL Dump -- version 2.6.4-pl1 -- http://www.phpmyadmin.net -' at line 1
View Replies !
View Related
MySQL Error #1064
I am creating a php/javascript based website that uses a MySQL database. When running at Apache server 1.3.29 (PHP 4.3.6, MySQL 4.0.18) served locally from my own PC it works fine. When uploaded to an Apache server 1.3.34 (PHP 4.4.1, MySQL 4.0.25 standard) I receive errors #1064 all the time when trying to insert, update or delete from database. The type of syntax I use are: INSERT INTO tablename SET colname1='value1', colname2='value2', colname3='value3' or UPDATE tablename SET colname='newvalue' WHERE colname2='value' or DELETE FROM tablename WHERE colname='value'
View Replies !
View Related
MySQL 4.1.15 And Error 1064
I'm trying to set up a survey with a 3rd party tool, which delivers a comfortable install tool for my survey. Starting this install.php on my server, at first everything goes fine... the tool report a connection with the db and tries now to create the need tables within the db. And then this error message appears: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /is/htdocs/wp1019332_6FJV867SBW/www/umfrage/install.php on line 37 Code:
View Replies !
View Related
Error 1064 :: MailMachinePro
I have acquired an application that uses PHP and mySQL (MailMachinePRO) to manage my mailing lists. My WEB host is 1and1.com and thru them I have access to mySQL. I have setup the application as directed by the vendor of the software (and he indicates it IS setup properly). I am able to setup NEW mailing lists with no indication from mySQL that there is any issues. When i go to update an existing entry in mySQL I receive the following error: "Query Error ErrorNumber: 1064 Error Description: 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 '' at line 1" Please not the absence of any code in error being displayed between the QUOTES.... Thank you for any assistance you can provide. Application vendor has indicated that they have done all they can do to figure out why this is happening. By posting here I am hoping someone can point out possible problem areas that I can in turn pass on to the application vendor!
View Replies !
View Related
1064: Syntax Error
I want to execute a simple request SQL on the MySql shell, On DB2 and solid this line work perfectly, but under mySql i get an error. This is the error: ERROR 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 'exists (SELECT Table_2.Tab1ID FROM Rdv WHERE Table_2.Tab1ID = 1 This is the line to execute: DELETE FROM Table_1 WHERE ((Table_1.ID = 123456) AND not exists (SELECT Table_2.Tab1ID FROM Rdv WHERE Table_2.Tab1ID = 123456));
View Replies !
View Related
MySql 1064 Error
Can anyone give me advice on how to resolve the following error message ive had a look through the internet for some advice but find the information confusing. Ive being using MySql version 4.1.10 Ive updated the previlages and it seems to have no effect. Ive created tables before on phpmyAdmin 2.6.1 But ive suddenly got the following error message #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 '10.2) NOT NULL, `image_file_1` VARCHAR(50), `image_file_2` VARCHAR(50), `on_cata' at line 1 The MySql for creating the table is as follows Code:
View Replies !
View Related
Mysql 1064 Error?
sorry to make my first post a question, but i am just puzzled at this error and have been trying just about everything to make it go away, and i just can't get it done. I have tried putting ` ticks in, // blocking the ip line, etc.....I went to as many mymsql threads as possible and even did a search here before posting my question, and i am just dumb founded. Any help on this would be greatly appreciated.....And i am on MySQL - 4.1.21-standard. anyways, here is the error: Quote: Database error in vBulletin 3.6.0: Invalid SQL: INSERT INTO vb3 `session` (`userid`,`lastactivity`,`host`) VALUE (飅',1159372455,飗.0.0.1'); MySQL Error : 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 'session` (`userid`,`lastactivity`,`host`) VALUE (飅',1159372455,飗.0.0.1')' at line 1 Error Number : 1064 and here is where i think the bad line is at, but this is only a guess on my part: PHP $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "session SET lastactivity = '". TIMENOW ."' WHERE (userid = '".$vbulletin->options['ewt_talkerbot_botuid']."')"); if ($vbulletin->db->affected_rows() == 0) { $ip = 飗.0.0.1' $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . " `session` (`userid`,`lastactivity`,`host`) VALUE ('" . $vbulletin->options['ewt_talkerbot_botuid'] . "'," . TIMENOW . ","$ip")"); } $userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD); $userdata->set_existing($botinfo); $userdata->set('lastactivity', TIMENOW); $userdata->set('lastvisit', TIMENOW - 1); $userdata->save(); and PHP $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "session SET lastactivity = '". TIMENOW ."' WHERE (userid = '".$vbulletin->options['ewt_talkerbot_botuid']."')"); if ($vbulletin->db->affected_rows() == 0) { $ip = 飗.0.0.1' $vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . " `session` (`userid`,`lastactivity`,`host`) VALUE ('" . $vbulletin->options['ewt_talkerbot_botuid'] . "'," . TIMENOW . ","$ip")"); } $userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD); $userdata->set_existing($botinfo); $userdata->set('lastactivity', TIMENOW); $userdata->set('lastvisit', TIMENOW - 1); $userdata->save(); }
View Replies !
View Related
Error #1064 In Query
I have this php function that makes a MySQL query into GPS database information. I can do the upload GPX files to my uploaded directory however when I try to send the add info through a web form the webserver that I am using display this error, famous #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 '0, 0)' at line 1". My database runs MySQL 4.1.11-Debian_4sarge5-log and webserver is PHP 4. PHP Code:...
View Replies !
View Related
Subqueries :: #1064 - You Have An Error In Your SQL Syntax.
I'm famililar with other DB systems, but for some reason am having a problem with the simplest of queries..... SELECT * FROM table1 WHERE famc NOT IN ( SELECT familyID FROM table2 ) Why isn't this working?? I'm on version 4.0.25 something....I get #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.............. According to mysql docs it's supposed to work.... http://dev.mysql.com/doc/refman/4.1...subqueries.html
View Replies !
View Related
MySQL Error Number 1064
CREATE TABLE `test`.`buildings` ( `building` VARCHAR NOT NULL DEFAULT '', `location` VARCHAR(45) NOT NULL DEFAULT '', PRIMARY KEY(`building`) ) ENGINE = InnoDB; MySQL Error Number 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rights syntax to use near 'NOT NULL DEFAULT". 'location' VARCHAR(45) NOT NULL DEFAULT". PRIMARY K' at line 2 Can you please explain the reason for this error and inability to create a table as a result.
View Replies !
View Related
MySQL Error Code 1064:K@N@!:
I suspect that this is some kind of issue with privileges. However, the = account I am using has been given 'ALL' privileges to the database I am = trying to insert to. Am I save to assume that ALL includes insert = privileges? Code:
View Replies !
View Related
Error Code 1064 In Another Application
--=_104E0413.12733F99 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am running mysql 4.0.13 and using a weblog(Geeklog) to do my web. Using geeklog as been okay until I tried creating moderators to my forum and then I got the following error: 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 '' at line 1 My intuition is that because I start mysql as a service in win2k and so each time I log onto my Win2k Server, mysql is running already. I however log into win2k with username Administrator, while mysql root user has been changed to my name ola, I believe that user Ola has all the rights with the following setup string: mysql> delete from user where Host='%'; mysql> delete from user where User=''; mysql> delete from db where Host='%'; mysql> update user set User='ola', Password=password('olapassword') where User='root'; mysql> flush privileges; With the above, I was able to create 3 databases, and I believe that because of the above, then user ola is now the root user and should be able to grant privileges to other users.... Does user ola need to be granted privileges in each database created after executing the above commands or are they inherited since user ola is now the root user? Would manually starting Mysql with user ola correct the error 1064 that I got from the other application?
View Replies !
View Related
Replace Function :: Error 1064
I am trying to do an update/replace function in MySQL but I am getting MySQL error #1064. Basically the query is just trying to update a field called Description in a table called Widgets by changing some values to a new value. So, for example, I want to change the field 'oldvalue123' to 'newvalue123' The query works well in MS SQL 2000 but not in MySQL- Here is the query Update Widgets Set Description = (Select Replace(Description,'oldvalue','newvalue')) From Widgets
View Replies !
View Related
Time Datatype And Error 1064
Time and date are still giving me grief as I try to insert some data into a table. The query I'm running is: INSERT INTO security VALUES (24623,2003-07-04,18:23,10:03); The datatypes are char, date, time, time #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 ':23, 10:03)' at line 1 I've been into the manual 10.3.2 TIme -
View Replies !
View Related
ERROR 1064 When Trying To Restore From Backup
Some time ago I installed MySQL on Debian Sarge ia64 and ended up with v. 4.1.11. I went on to build a database and a few days ago I wanted to copy it across to a web server, running Debian Sarge i386. I installed MySQL on the web server. As this was installed via FTP I was a bit pussled to see that I ended up with MySQL 4.0.24. Anyway, I thought no more about it, until I tried to copy across my MySQL 4.1.11 database. I backed up the original MySQL 4.1.11 database thus: # mysqldump -u root -p databasename > datavasename_bak.sql and encountered no problems. I also tried to restore it and everything seemed just fine. I then copied the backup file across to the web server and tried to restore it with the command: mysql -uroot -p databasename < databassename_bak.sql whish resulted in the following error message: ERROR 1064 at line 21: 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 'DEFAULT CHARSET=latin1' at line 27 Having searched various forums it seems that this is a common error, but I have not been able to find any advice as to how it may be fixed. Just to make sure that there was nothing wrong with by installation I deinstalled the MySQL 4.1.11 version and installed it again (via FTP), which gave me a real surprise, as I now ended up with version 4.0.24. It seems that the Debian team has decided to go back to v. 4.0.24. I don't know why; I can only guess that there might be problems with v. 4.1.11. So, I now have compatible databases (booth 4.0.24) on the development machine and the web server, but I am left with an empty database and a backup (4.1.11) that I cannot restore. Is there a solution to this problem?
View Replies !
View Related
Error 1064 In MYSQL ADMIN
I am trying to run an SQL script using File -> Open Script. Everything is working fine until one of the INSERT commands has a backsalash insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('9', 'Switch To Default Language Currency', 'USE_DEFAULT_LANGUAGE_CURRENCY', 'false', 'Automatically switch to the language's currency when it is changed', '1', '10', NULL, '2004-11-03 12:36:43', NULL, 'tep_cfg_select_option(array('true', 'false'),'); In the code above the word "language's" seems to be creating an error. How do get round this problem?
View Replies !
View Related
Error 1064 (42000): SQL Syntax
The exact error is "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 '' at line 1" i am new at this kind of thing. im using phpbb and myql database server 4.1.8 in windows server 2003. i am tryin to create tables by using the following syntax CREATE TABLE example (username VARCHAR(30); i have also left a space between VARCHAR and (30). i dont have the slightest clue as what im doing this is my first time EVER using this software.
View Replies !
View Related
ERROR 1064 When Attempting Mysqldump
I have installed mysql version 5 on my windows xp machine. I have used the mysql data migration tool to import/migrate a database from ms access. I am logged into localhost as root without a password. The database name is: 331539_conndemo, it has two tables. At the command line I can mysql> show databases; (return) and I can view the list of databases on this server. I can use the database, and use select statements to return data to the command line. It does exist, and I am logged on to the server! I want to do a dump of this database, so that I can import it to a webserver thru php admin. I do not have command line access to the webserver. I can not make mysqldump work correctly. Here is how it looks on my screen, including the prompt: mysql> mysqldump -u root -p 331539_conndemo > 331539_conndemo.sql ; (return) I get this error 1064 (420000) you have an error in your syntax, check the manual...blah blah...but there is no other useful information. I have also tried it without a space between .sql and ; so that the line looks like this: mysql> mysqldump -u root -p 331539_conndemo > 331539_conndemo.sql; (return) (same error) I have also tried simpler methods: mysql> mysqldump 331539_conndemo > 331539_conndemo.sql; (return) and mysql> mysqldump 331539_conndemo; (return) all give the same error.
View Replies !
View Related
ERROR #1064 - MySQL And Mambo CMS
I'm trying to deploy a Mambo CMS site but when I import my locally created DB into the empty server DB I'm getting the following error: Error SQL-query : CREATE TABLE `mos_banner` ( `bid` int( 11 ) NOT NULL AUTO_INCREMENT , `cid` int( 11 ) NOT NULL default '0', `type` varchar( 10 ) collate latin1_general_ci NOT NULL default 'banner', `name` varchar( 50 ) collate latin1_general_ci NOT NULL default '', `imptotal` int( 11 ) NOT NULL default '0', `impmade` int( 11 ) NOT NULL default '0', `clicks` int( 11 ) NOT NULL default '0', `imageurl` varchar( 100 ) collate latin1_general_ci NOT NULL default '', `clickurl` varchar( 200 ) collate latin1_general_ci NOT NULL default '', `date` datetime default NULL , `showBanner` tinyint( 1 ) NOT NULL default '0', `checked_out` tinyint( 1 ) NOT NULL default '0', `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00', `editor` varchar( 50 ) collate latin1_general_ci default NULL , `custombannercode` textcollate latin1_general_ci, PRIMARY KEY ( `bid` ) , KEY `viewbanner` ( `showBanner` ) )ENGINE = MYISAM DEFAULT CHARSET = latin1 COLLATE = latin1_general_ci MySQL said: #1064 - You have an error in your SQL syntax near 'collate latin1_general_ci NOT NULL default 'banner', `name` varchar(50) collat' at line 4
View Replies !
View Related
Alias Mysql ERROR 1064
I am trying to configure the mysql install, following the instructions in the manual, specifically the alias to the mysql path and I get the following error: mysql> alias mysql=/usr/local/mysql/bin/mysql/ -> ; 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 'alias mysql=/usr/local/mysql/bin/mysql/' at line 1
View Replies !
View Related
Syntax Error 1064 <42000>
I am brand new and I just installed WAMP5_1.7.0 I am watching:Lynda.com.PHP.with.MySQL.Essential.Training.DVD-ViH and I am following whatever happened on the video, but I am still getting the same error message. I opened the MySQL console i wrote: use mysql UPDATE user SET Password=PASSWORD<'password'> WHERE user='root'; and 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 'WHERE user='root'' at line 3 but on the video it's working. What is the problem?
View Replies !
View Related
MySQL Error Occured 1064
Today I noticed I got this error stated below hitting one of my url's on the page. Anyone in here can see what could be wrong with the code or in the database? I have tried browse around but I just don't understand what to do since I can't get the manuals on this issue. Thanks in advance from a pure newbie =P MySQL Error Occured 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 'by CubeCart_inventory.price DESC LIMIT 0, 10' at line 2 QUERY = SELECT CubeCart_cats_idx.cat_id, CubeCart_cats_idx.productId, productCode, quantity, description, image, price, name, popularity, _price, stock_level, useStockLevel FROM CubeCart_cats_idx INNER JOIN CubeCart_inventory ON CubeCart_cats_idx.productId = CubeCart_inventory.productId WHERE sale_price > 0 GROUP BY CubeCart_inventory.productIdORDER by CubeCart_inventory.price DESC
View Replies !
View Related
Stored Procedure Error 1064
I have tried this a few different ways, but I keep getting the same error message: MySQL Error Number 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 'INSERT into peak_trader.users_cc (' I believe the server is MySQL 5.0.45-community-nt via TCP/IP, and the interface I am using is MySQL Administrator 1.2.12 with Client version 5.1.11. Here is the code I am atmysqlting to use to create a stored procedure....
View Replies !
View Related
Mysqldump :: ERROR 1064 (42000)
When I try to do a mysqldump, I get the following error and I am not sure why. I have researched the syntex and so far I have found nothing. I am running: Server version:5.0.22-community-nt mysql> mysqldump -uroot -p******* newsletter > newsletter.sql; 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 'mysql dump -uroot -p******** newsletter > newsletter.sql' at line 1
View Replies !
View Related
Error #1064 On CREATE TABLE
I'm an academic doing content analysis for the history of science. I am trying to create a table from a long list of terms (approx 800, although I could split it up) that will hold frequency data. I've used awk to make this list into the following test command/batch-file: .....
View Replies !
View Related
|