Author Topic: MYSQL Help  (Read 6550 times)

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
MYSQL Help
« on: April 17, 2007, 05:49:54 PM »
I have a database from a 4.1 server i need to move to a 4.0 server....but im getting syntax errors. Is there an easy fix? And no, upgrading the server isnt an option
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: MYSQL Help
« Reply #1 on: April 17, 2007, 07:53:48 PM »
how are you trying to move it? Restoring the 4.0 with the 4.1 logs?

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: MYSQL Help
« Reply #2 on: April 17, 2007, 08:35:33 PM »
i exported the db from 4.1 and im trying to import it onto the new server which is 4.0
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Perspective

  • badfish
  • Jackass In Charge
  • Posts: 4635
  • Karma: +64/-22
    • http://jeff.bagu.org
Re: MYSQL Help
« Reply #3 on: April 17, 2007, 08:51:55 PM »
Ah i see. what type of errors are you getting?

Mike

  • Jackass In Charge
  • Posts: 11257
  • Karma: +168/-32
  • Ex Asshole - a better and more caring person.
Re: MYSQL Help
« Reply #4 on: April 17, 2007, 08:58:36 PM »
Upgrade to MySQL 5 ;)

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: MYSQL Help
« Reply #5 on: April 17, 2007, 09:00:58 PM »
Did you specify an export compatibility?

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: MYSQL Help
« Reply #6 on: April 17, 2007, 09:09:06 PM »
Upgrade to MySQL 5 ;)

not an option

Ah i see. what type of errors are you getting?

"syntax error on blah blah compoenent_time blah blah read the fucking manual". I can re-create it if needed.

Did you specify an export compatibility?

ill be honest, im not even sure what that means. I'm using phpmyadmin.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
Re: MYSQL Help
« Reply #7 on: April 17, 2007, 09:37:26 PM »
like ober said,

try using mysqldump to do the backup.

something like (piped to some sort of file):
>mysqldump --compatible=mysql40 <dbname> -u <username> -p
This signature intentionally left blank.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: MYSQL Help
« Reply #8 on: April 17, 2007, 09:40:33 PM »
i dont have root access, just phpmyadmin access.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: MYSQL Help
« Reply #9 on: April 17, 2007, 09:56:59 PM »
DOH! phpmyadmin has a "compatability mode" option for sql 4.0......dammit. thnx guys your ideas helped me find that
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: MYSQL Help
« Reply #10 on: April 18, 2007, 08:48:13 AM »
Yeah... I meant using phpmyadmin.  I figured you didn't have root access.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: MYSQL Help
« Reply #11 on: April 18, 2007, 12:21:51 PM »
Its running super slow now, i cant figure out why but thats going to take me some time to see how the new db looks vs the old. something tells me compatiability came at a cost.
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

hans

  • Guitar Addict
  • Jackass In Charge
  • Posts: 3523
  • Karma: +46/-18
Re: MYSQL Help
« Reply #12 on: April 18, 2007, 12:46:04 PM »
Indexes maybe?
This signature intentionally left blank.

Steve

  • This 49%er supports Romney
  • Just a Jackass
  • *
  • Posts: 16120
  • Karma: +31/-410
  • Mr. Mom
Re: MYSQL Help
« Reply #13 on: April 18, 2007, 12:54:53 PM »
Explain plz. I'm a little slow with some things i never messed with before lol
hey ethic if you and i were both courting lily allen..... oh wait, which one of us has a relationship that lasted more than the bus ride home?

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14310
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
Re: MYSQL Help
« Reply #14 on: April 18, 2007, 01:22:19 PM »
You can assign a specific field to be an index, so it can sort and categorize easier.  If you look at the "structure" tab of phpmyadmin, you should see the option in several places.