Hi there - I'm a fairly newbie in regards with MySQL but I have encountered a problem and I'm not sure where to go with it.
I'm transferring my WP blogs over to a new host and I've so far successfully completed most of them.
With this DB import I get the following message in phpMyAdmin:
SQL query:
-- phpMyAdmin SQL Dump
-- version 2.11.0
-- http://www.phpmyadmin.net
--
-- Host: test.smallofficeaustralia
.com-- Generation Time: Dec 01, 2007 at 07:53 AM
-- Server version: 5.0.27
-- PHP Version: 5.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 '.com
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"' at line 1
Any ideas on what's gone wrong?
Thanks in advance,
Martin
6 4685
Hi Martin Neumann,
Welcome to TSDN!!!
What are the MySQL versions on new and old host?
old host - MySQL 5.0.27
new host - MySQL 5.0.24
To run this command your MySQL user must have SUPER privilege that you do not have. Remove the following line from your exported sql file and the import the data to new host. - SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"
Just deleted that line and tried another import. The following appears... - -- phpMyAdmin SQL Dump
-
-- version 2.11.0
-
-- http://www.phpmyadmin.net
-
--
-
-- Host: test.smallofficeaustralia
-
.com-- Generation Time: Dec 01, 2007 at 07:53 AM
-
-- Server version: 5.0.27
-
-- PHP Version: 5.2.3--
-
-- Database: `epub`
-
--
-
-- --------------------------------------------------------
-
--
-
-- Table structure for table `sk2_blacklist`
-
--
-
CREATE TABLE `sk2_blacklist` (
-
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
-
`type` tinytext NOT NULL ,
-
`value` text NOT NULL ,
-
`score` int( 11 ) NOT NULL default '0',
-
`trust` int( 11 ) NOT NULL default '0',
-
`comments` text NOT NULL ,
-
`added` datetime NOT NULL default '0000-00-00 00:00:00',
-
`added_by` tinytext NOT NULL ,
-
`last_used` datetime NOT NULL default '0000-00-00 00:00:00',
-
`used_count` int( 11 ) NOT NULL default '0',
-
`user_reviewed` enum( 'yes', 'no' ) NOT NULL default 'no',
-
PRIMARY KEY ( `id` )
-
) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =621;
- 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 '.com
-
-
CREATE TABLE `sk2_blacklist` (
-
`id` int(11) NOT NULL auto_increment,
-
' at line 1
Always use proper tags when posting code.
Look at the line 6 in the above code, you will see .com in the start of the line and it is causing the problem. Either remove .com or the whole line.
It seems to be fixed now.
I put everything back in and simply played around with spaces in the SQL file and it imported it. Don't ask me how. ;-)
Thanks for your help anyhow.
Cheers,
Martin
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Michele Ferretti |
last post by:
http://www.blackbirdblog.it/programmazione/progetti/28
--
Michele Ferretti
ICQ#: 14491159
Skype: m.ferretti79
black DOT bird AT tiscali DOT it
www.blackbirdblog.it
|
by: surfivor |
last post by:
I am doing some preliminary research as we are slated to do a project
with wordpress. I looked at the wordpress code and realized why I like
MVC so much (Rails) because the code mixed in with the...
|
by: Hasin Hayder |
last post by:
Today I developed this tool to import wordpress blog rolls as XML
document. You know when you export data from wordpress.com that
doesn't include the blog rolls data. So if you want to keep a...
|
by: deephill |
last post by:
hi
I am getting SELECT cat_id, cat_name FROM Error in Wordpress Blog. Im getting below error in my online site. Wht can i do?
Sample template i am viewing Blogrolls. But in online site i...
|
by: Nooze Goy |
last post by:
I'm trying to use a blog client to write messages with "attached" .pdf
content to WordPress blogs. WIth the "Direct Upload" mechanism, the
attached files work for some types (like .txt) but fails...
|
by: maya |
last post by:
hi expert php'ers.....;)
is it ok to ask WordPress questions here? I mean if you don't get a
response to your quetion in WP forums where else can you go??
I have WP 2.3 installed on my own...
|
by: sleepy1038 |
last post by:
Hello,
I'm developing a site that makes use of wordpress. The homepage is
outside of wordpress and I am pulling the latest 3 blog posts from the
wordpress database to display on the homepage....
|
by: Bhavesh |
last post by:
hi everyone,
i want to use wordpress in my C#.net website ,,so is it possible to
use ? b'coz wordpress requires Php, mysql & apache...
If not then which DOTNET blog tool is best which can...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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: 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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |