Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 10-18-2004, 06:01 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
MYSQL Error at install

Hey there.

Trying to install and keep getting this error on the admin page after I enter in admin name and passwd:

Error: You have an error in your SQL syntax near '; ' at line 11

I have tried this with having a DB created beforehand and also to see if the script would create the DB. Neither work.


This is the first part of the script where it indicated there was an error:

<?php

// ################################################## ##
// PIXELPOST VERSION 1.1.2 - admin script | PHOTOBLOG PUNK SOFTWARE BY PUNK@PIXELPUNK.SE
// ################################################## ##

// admin.php version 1.3.2

require("pixelpost.php");
/* start up mysql */
mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass) || die("Error: ". mysql_error());
mysql_select_db($pixelpost_db_pixelpost) || die("Error: ". mysql_error());

// check to see if it's installed
$check = mysql_query("select * from pixelpost limit 0,1");
if(!$check) {
header("Location: install.php");
exit();
}

Reply With Quote
  #2  
Old 10-18-2004, 06:33 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
It's a known error the script has with older MySQL, the syntax is wrong somewhere, I haven't put much time into it to be honest.

Quick solution is to manually create the tables as indicated by install.php.
Another solution is to update MySQL.

If you decide to manually create the tables don't forget that the password for admin are encoded.

Have a look at this thread:
http://www.pixelpunk.se/software/for...c&start=15

Hope it'll work out, let me know if I can be of any help.

// punK
__________________
icq: 66760929
Reply With Quote
  #3  
Old 10-18-2004, 11:30 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
Thanks.

Got the tables created, but a little lost with the meaning of this:

If that is the problem, open the table and insert a new password.

Code:
YWRtaW4=


The above is admin. You can change your password once you've logged in, so no worries.

What does code mean?

Thanks

kev
Reply With Quote
  #4  
Old 10-18-2004, 11:41 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Quote:
Originally Posted by Anonymous
YWRtaW4=
Never mind the Code: thing.
Edit your table and insert the above YWRtaW4=, then when you login your password is admin.

Hope it works // punK
__________________
icq: 66760929
Reply With Quote
  #5  
Old 10-18-2004, 11:57 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
This is the last try and i'll stop buggin you!! Not a DB guy, sorry. Not sure where in the pixelpost_config table to add that.

Add that in the password field?

Field name
Data type Warning! Changing type may result in data loss
Type width
Type options Case insensitive Case sensitive
Allow nulls? Yes No
Default value
Part of primary key? Yes No

Or somewhere here:


Field name Type Allow nulls? Key Default value Extras
admin varchar(20) No None
password varchar(20) No None
template varchar(150) No None
imagepath varchar(150) No None
siteurl varchar(100) No None
sitetitle varchar(100) No None
calendar varchar(30) No None
version varchar(10) No None

Thanks for your help. Taking donations?

:?:
Reply With Quote
  #6  
Old 10-19-2004, 12:07 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Don't stop bug me until it's done, I don't like when pixelpost is acting up and ruining the experience for those who downloads it.

Can you enter sql somewhere, do you use phpmyadmin?
If so enter this query:
Code:
update pixelpost_config set password='YWRtaW4='
That should work, not tested though.
In the table pixelpost_config there is a column/field called password, that is the one we want to change.

// punk

Edit: Donations? Good idea. I want a postcard!
__________________
icq: 66760929
Reply With Quote
  #7  
Old 10-19-2004, 12:13 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
worked!!!!!

Thanks dude!
Reply With Quote
  #8  
Old 10-19-2004, 09:37 PM
flashlight Offline
forum loafer
 
Join Date: Oct 2004
Location: Toronto
Posts: 6
I'm having the same problem. I know just enough to really get myself in trouble. Using phpMyAdmin, I pasted:
Code:
$query = mysql_query("
CREATE TABLE pixelpost_categories (
  id int(11) NOT NULL auto_increment,
  name varchar(100) NOT NULL default '',
  KEY id (id)
) TYPE=MyISAM;
");
into the SQL query box under the SQL tab. I got the following error message:

Error


SQL-query*:*


$query = mysql_query(
" CREATE TABLE pixelpost_categories ( id int(11) NOT NULL auto_increment, name varchar(100) NOT NULL default '', KEY id (id) ) TYPE=MyISAM; "
)


MySQL said:


#1064 - You have an error in your SQL syntax near '$query = mysql_query( "
CREATE TABLE pixelpost_categories (
id int(11) NOT NU' at line 1


I've installed pixelpost successfully on another server, but am over my head here. Any advice would be most appreciated.

Thanks,
__________________
I am Almost Cool
Reply With Quote
  #9  
Old 10-19-2004, 09:45 PM
turnover Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Paris, France
Posts: 136
just past
Code:
CREATE TABLE pixelpost_categories ( 
* id int(11) NOT NULL auto_increment, 
* name varchar(100) NOT NULL default '', 
* KEY id (id) 
) TYPE=MyISAM;
Reply With Quote
  #10  
Old 10-19-2004, 10:04 PM
flashlight Offline
forum loafer
 
Join Date: Oct 2004
Location: Toronto
Posts: 6
Ah yes, it's so obvious once you know the answer...

Thanks
__________________
I am Almost Cool
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:43 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs