Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: A bit confused  (Read 4657 times)

0 Members and 1 Guest are viewing this topic.

bewbs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
  • Delirium Trigger
A bit confused
« on: September 09, 2004, 09:59:47 pm »

Hi there,

I recently switched hosts, and I made a dump of mysql and downloaded all my files via FTP from my old host. I just got done uploading my FTP files, CHMODed all the necessary files, and I'm stuck on what I should do with the mysql dump.

Could someone supply a step-by-step process on what I should do in MyPHPAdmin to restore the database & such? It would be greatly appreciated.

Thank you.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: A bit confused
« Reply #1 on: September 10, 2004, 02:28:28 am »

Create a new MySQL database with the same name as your old db.  If your username and password isn't the same as before, create a new user with all permissions with the name/password as your old db.  Then import your dump.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

bewbs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
  • Delirium Trigger
Re: A bit confused
« Reply #2 on: September 11, 2004, 08:36:10 pm »

Thanks.

I made the database w/ the same username & password, then I went to MyPHPAdmin > SQL, and uploaded my dump.

I received this error:

Error

SQL-query :

--
--

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 '--' at line 2


Then when I go to my website, I receive this error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/htk/public_html/include/functions.inc.php on line 99

My website is here: http://hyung-taekim.org/index.php.

Any help would be great, and I don't mind giving out the username/password for further help, if necessary.

Thank you.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: A bit confused
« Reply #3 on: September 11, 2004, 08:50:24 pm »

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 '--' at line 2[/b]
Post line 2 (or a bit more - the lines around line2.

Joachim
Logged

bewbs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
  • Delirium Trigger
Re: A bit confused
« Reply #4 on: September 11, 2004, 11:35:53 pm »

I'm not sure what it means by 'manual' or where to look - all I have is this attachment.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: A bit confused
« Reply #5 on: September 11, 2004, 11:39:20 pm »

If you are using phpmyadmin to repopulate your database, you need to unzip that file, and then use phpmyadmin to import the .sql file.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

bewbs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
  • Delirium Trigger
Re: A bit confused
« Reply #6 on: September 12, 2004, 12:26:57 am »

Thanks!

Unfortunatly, I'm still receiving the parse error. Any advice?
Logged

Nibbler

  • Guest
Re: A bit confused
« Reply #7 on: September 12, 2004, 12:33:52 am »

Delete and re-upload your functions.inc.php file
Logged

bewbs

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
  • Delirium Trigger
Re: A bit confused
« Reply #8 on: September 12, 2004, 01:14:32 am »

No prevail.  :-[
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: A bit confused
« Reply #9 on: September 12, 2004, 01:32:43 am »

T_CONSTANT_ENCAPSED_STRING is called a parser token, and means any string enclosed in double or single quotes.  Most probably you have a single or double quote in one of your table's fields that's causing this problem.

Use phpmyadmin to look thru your tables - look for any single or double quotes in the filename, title, keywords, etc, fields, and then remove them.  Matter of fact, you should compare your db dump with what is now in your db to see if there's anything missing or possibly corrupted.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.