2 phpbb boards I run have been hacked. One I've restored but the other one has had some damage to the MySQL db. A table is missing.
As it's a styles table I thought I could could copy a table, from a test board I set up, to the hacked board.
I tried this using phpMyAdmin and I get this error: -
SQL-query: Edit
-
-
CREATE TABLE `Tabcom`.`phpbb_styles_imageset_data` (
-
`image_id` smallint( 4 ) unsigned NOT NULL AUTO_INCREMENT ,
-
`image_name` varchar( 200 ) COLLATE utf8_bin NOT NULL default '',
-
`image_filename` varchar( 200 ) COLLATE utf8_bin NOT NULL default '',
-
`image_lang` varchar( 30 ) COLLATE utf8_bin NOT NULL default '',
-
`image_height` smallint( 4 ) unsigned NOT NULL default '0',
-
`image_width` smallint( 4 ) unsigned NOT NULL default '0',
-
`imageset_id` smallint( 4 ) unsigned NOT NULL default '0',
-
PRIMARY KEY ( `image_id` ) ,
-
KEY `i_d` ( `imageset_id` ) ,
-
FULLTEXT KEY `image_name` ( `image_name` ) ,
-
FULLTEXT KEY `image_lang` ( `image_lang` ) ,
-
FULLTEXT KEY `image_name_2` ( `image_name` )
-
) ENGINE = MYISAM AUTO_INCREMENT = 79DEFAULT CHARSET = utf8 COLLATE = utf8_bin
-
-
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 '79DEFAULT CHARSET = utf8 COLLATE = utf8_bin' at line 12
-
Can you please help?
Thanks
Ashley
6 3513 mwasif 802
Recognized Expert Contributor
Make sure you have space between 79 and DEFAULT in the last line of the statement i.e. 79DEFAULT
Make sure you have space between 79 and DEFAULT in the last line of the statement i.e. 79DEFAULT
Thanks for your quick reply.
However the line was generated by phpMyAdmin not by me; so I cannot correct it!
Atli 5,058
Recognized Expert Expert
Can't you simply copy the SQL you posted here, add the space and execute the modified SQL in phpMyAdmin's SQL window?
Sorry for being so thick!
Where is the SQL window in phpMyAdmin?
Ashley
Atli 5,058
Recognized Expert Expert
If you select the database from the drop-down on the left, there should be a SQL tab at the top of the main window.
That should allow you to run any SQL query you need on the database.
Yes that worked!
I no longer get a db error but my board is still hacked.
Back to the phpbb help forum. :(
Thanks for being so patient with me.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Steve_EE |
last post by:
I'm running phpMyAdmin 2.5.3 / MySQL 4.0.14 / PHP 4.3.3 / Apache
1.3.20
phpMyAdmin is installed and appears ok at first, I can login, select
databases, view which tables are in each db, see the exact structure
of each table, but when I do anything that requires reading of the
table contents - browse / select / etc - nothing. If I try...
|
by: weldonj |
last post by:
I upgraded to MySQL 4.1.1-alpha-standard the other night and ever
since then at least twice a day my main message board table will
crash.
Here's what i get when I check on the board or analyze it:
check board:
Table Op Msg_type Msg_text
myboard.board_data check warning Table is marked as crashed
myboard.board_data check error Key in...
|
by: Golf Nut |
last post by:
This is a phpmyadmin question more than anything, but I hope someone may be
able to help. When creating a dump of a normalized database with 26 innodb
tables, phpmyadmin export seems to only export the table structure/data in
alphabetical order, rather than FK contraint order. Thus when importing the
dump of the data, I need to manually go...
|
by: jaks |
last post by:
How can I export a MySQL table with a different name using phpmyadmin?
I want to export
nuke_bbsearch_wordmatch
and all it contents to
phpbb_search_wordmatch
This table in a different db. Fields are the same just the name needs to be
changed. When exporting. I have been editting the rest of the table I need
manually bt editting them in...
|
by: Jim |
last post by:
Hi,
I want to add a field to a table in a database that is live and being
accessed from the web. I'm using phpMyAdmin and when I try to add the field
I get error #1142 (ER_TABLEACCESS_DENIED_ERROR) "ALTER command denied to
user 'xxx' for table 'yyy'"
I'm a newbie to MySQL but I guess that's a reasonable error as there are
probably open...
| |
by: news reader |
last post by:
Hi,
Does anoone of you know if there is already a simple application doing
something like this.
I would enhance / tune the missing features, but would like to avoid to
start from scratch or to start from something, that has far too many
features and is difficult to setup.
|
by: Howard |
last post by:
I have Apache Web Server 2.0.55 installed locally with MySQL 5.0.18-nt, and
of course PHP 5.1.2
I also have installed phpMyAdmin. It is accessible through
http://localhost/phpMyAdmin.
The pathing for directories is
C:\Apache\Apache2\htdocs-root folder for Dreamweaver 6.0 otherwise know as
MX 2004 I think.
C:\mysql, C:\mysql\data-databases...
|
by: shivendravikramsingh |
last post by:
hi friends,
i have a problem.i m using phptraid or php4 with mysql and phpmyadmin with apache in window XP my local machine.i hve used phpmyadmin for table creation,deletion,updation and insertion.it work fine earlier,but now when i try to do any operation with a table,its shown a error message,that table is read only.
for ex:
let i have a...
|
by: GarryJones |
last post by:
(I am sorry if this is the wrong group for this posting, I cant find a
group on usenet for phpmyadmin, but maybe someone would be nice enough
to answer me anyway....)
I need to import data into a simple table The table has three fields.
The first is an auto increment value, the second the current time and
date (the 14 character version),...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |